On Wed, Sep 23, 2009 at 05:19:28PM +0300, Eugene V. Lyubimkin wrote:
> Julian Andres Klode wrote:
> > On Wed, Sep 23, 2009 at 04:55:20PM +0300, Eugene V. Lyubimkin wrote:
> >> Julian Andres Klode wrote:
> >>> Hi, cupt fails to parse the following preferences file,
> >>> rendering the package unusable for me.
> >>>
> >>>   Package: ndisgtk
> >>>   Pin: release unstable
> >>>   Pin-Priority: 100
> >>>
> >> This is wrong-syntaxed file. This right syntax for the second line is:
> >>
> >> 'Pin: release a=unstable'
> > 
> > Not really, see the apt_preferences manual page:
> >            Package: *
> >            Pin: release unstable
> >            Pin-Priority: 50
> It's surely a typo. Even if apt recognizes it right (btw, does it?). These
> three lines are from 'examples' page, no any other normative sentences allow 
> it.

Reading versionmatch.cc it seems that specifying
        Pin: release unstable
means that either the codename or the archive is unstable. This probably
is not well-documented, but it is there.

Relevant parts are:
ll. 57:
      // Are we a simple specification?
      string::const_iterator I = Data.begin();
      for (; I != Data.end() && *I != '='; I++);
      if (I == Data.end())
      {
         // Temporary
         if (isdigit(Data[0]))
            RelVerStr = Data;
         else
            RelRelease = Data;
ll. 200:
      if (RelRelease.empty() == false)
         if ((File->Archive == 0 ||
             stringcasecmp(RelRelease,File.Archive()) != 0) &&
             (File->Codename == 0 ||
              stringcasecmp(RelRelease,File.Codename()) != 0))
               return false;



-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Attachment: signature.asc
Description: Digital signature

Reply via email to