Bug#204971: Wrong priorities with 'Pin-Priority: 0' in /etc/apt/preferences
Package: apt
Version: 0.5.8
Severity: normal
If I have this in my /etc/apt/preferences...
Package: *
Pin: release a=experimental
Pin-Priority: 0
....then apt sets all packages from experimental as priority 989, instead
of the expected 0 (zero):
#apt-cache policy openoffice.org1.1
openoffice.org1.1:
Installed: (none)
Candidate: 1.1beta2-2
Version Table:
1.1beta2-2 0
989 http://ftp.fi.debian.org
../project/experimental/contrib Packages
This also happens with other releases (e.g. unstable). If priority is set to
any non-zero value (that I've tried), everything works as expected. There is
no special meaning documented for zero, so I'm sure this is a bug. I'm using Sid.
(Also tried this in an old chroot with apt 0.5.4, it had the same symptoms, but
now the priority was set to 499 instead of the correct 0.)
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Get "";
APT::Get::Show-Upgraded "true";
APT::Cache-Limit "10000000";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "test -x /usr/sbin/apt-listbugs && /usr/sbin/apt-listbugs -I -l -g apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
-- /etc/apt/sources.list --
# Local repository
#deb file:/root/deb ./
# STABLE
#deb ftp://ftp.fi.debian.org/debian stable main contrib non-free
#deb ftp://ftp.fi.debian.org/debian stable-proposed-updates main contrib non-free
#deb ftp://ftp.fi.debian.org/debian-non-US stable/non-US main contrib non-free
# TESTING
#deb http://ftp.fi.debian.org/debian testing main contrib non-free
#deb http://ftp.fi.debian.org/debian-non-US testing/non-US main contrib non-free
#deb-src http://ftp.fi.debian.org/debian testing main contrib non-free
# UNSTABLE
deb http://ftp.fi.debian.org/debian unstable main contrib non-free
#deb http://ftp.fi.debian.org/debian-non-US unstable/non-US main contrib non-free
deb-src http://ftp.fi.debian.org/debian unstable main contrib non-free
# SECURITY
deb http://security.debian.org woody/updates main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free
#deb http://security.debian.org sid/updates main contrib non-free
# EXPERIMENTAL
deb http://ftp.fi.debian.org/debian ../project/experimental main contrib
# Uncomment if you want the apt-get source function to work
#deb-src http://ftp.fi.debian.org/debian testing main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US testing non-US
# JRE
deb http://www.tux.org/pub/java/debian unstable non-free
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux c36a 2.4.20-3-k7 #1 Sun Jul 27 21:10:39 EST 2003 i686
Versions of packages apt depends on:
ii libc6 2.3.2-2 GNU C Library: Shared libraries an
ii libgcc1 1:3.3.1-1 GCC support library
ii libstdc++5 1:3.3.1-1 The GNU Standard C++ Library v3
-- no debconf information
Reply to: