[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#574944: apt_preferences(5): "Pin-Priority:" line not optional



Package: apt
Version: 0.7.25.3
Severity: normal
File: /usr/share/man/man5/apt_preferences.5.gz

Hi,

apt_preferences(5) contains the following statement:

  The Pin-Priority: line in each APT preferences record is optional. If
  omitted, APT assigns a priority of 1 less than the last value
  specified on a line beginning with Pin-Priority: release ....

This is not true.  Records not containing a Pin-Priority field are
ignored with a warning:

      short int priority = Tags.FindI("Pin-Priority", 0);
      if (priority == 0)
      {
         _error->Warning(_("No priority (or zero) specified for pin"));
         continue;
      }
  (from apt-pkg/policy.cc)

Regards,
Ansgar

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii  debian-archive-keyring        2009.01.31 GnuPG archive keys of the Debian a
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.2-9  GCC support library
ii  libstdc++6                    4.4.2-9    The GNU Standard C++ Library v3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                   <none>         (no description available)
ii  aptitude                  0.4.11.11-1+b2 terminal-based package manager
ii  bzip2                     1.0.5-4        high-quality block-sorting file co
ii  dpkg-dev                  1.15.5.6       Debian package development tools
ii  lzma                      4.43-14        Compression method of 7z format in
ii  python-apt                0.7.93.3       Python interface to libapt-pkg

-- no debconf information



Reply to: