Package: apt Version: 0.6.38 Severity: normal Hi,
apt doesn't respect the pin priority specified in /etc/apt/preferences. With the attached file, I get | # apt-cache policy aptitude | aptitude: | Installed: 0.2.15.9-3 | Candidate: 0.2.15.9-3 | Package pin: 0.2.15.9-3 | Version table: | *** 0.2.15.9-3 700 | 550 http://ftp.de.debian.org unstable/main Packages | 100 /var/lib/dpkg/status | 0.2.15.9-2 700 | 600 http://ftp.de.debian.org sarge/main Packages | 550 http://ftp.de.debian.org testing/main Packages I would expect the priority of the unstable version to be 700, as specified in /etc/apt/preferences. If replace the package name with a wildcard, things work like they should. So with "Package: *" instead of "Package: aptitude", I get | # apt-cache policy aptitude | aptitude: | Installed: 0.2.15.9-3 | Candidate: 0.2.15.9-3 | Version table: | *** 0.2.15.9-3 0 | 700 http://ftp.de.debian.org unstable/main Packages | 100 /var/lib/dpkg/status | 0.2.15.9-2 0 | 600 http://ftp.de.debian.org sarge/main Packages | 550 http://ftp.de.debian.org testing/main Packages What is going on here? Am I doing something wrong? -- Package-specific info: -- apt-config dump -- APT ""; APT::Architecture "i386"; APT::Build-Essential ""; APT::Build-Essential:: "build-essential"; APT::Default-Release "sarge"; APT::Cache-Limit "8388608"; 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:: "/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"; Acquire ""; Acquire::http ""; Acquire::http::Timeout "2"; -- /etc/apt/preferences -- Package: aptitude Pin: release o=Debian,a=unstable Pin-Priority: 700 Package: * Pin: release o=Debian,a=stable Pin-Priority: 600 Package: * Pin: release o=Debian Pin-Priority: 550 -- /etc/apt/sources.list -- deb http://ftp.de.debian.org/debian sarge main #deb http://ftp2.de.debian.org/debian sarge main deb-src http://ftp.de.debian.org/debian sarge main #deb-src http://ftp2.de.debian.org/debian sarge main deb http://security.debian.org/ sarge/updates main deb-src http://security.debian.org/ sarge/updates main # testing deb http://ftp.de.debian.org/debian testing main #deb http://ftp2.de.debian.org/debian unstable main deb-src http://ftp.de.debian.org/debian testing main #deb-src http://ftp2.de.debian.org/debian unstable main # unstable deb http://ftp.de.debian.org/debian unstable main #deb http://ftp2.de.debian.org/debian unstable main deb-src http://ftp.de.debian.org/debian unstable main #deb-src http://ftp2.de.debian.org/debian unstable main ## experimental #deb http://ftp.de.debian.org/debian experimental main ##deb http://ftp2.de.debian.org/debian experimental main #deb-src http://ftp.de.debian.org/debian experimental main ##deb-src http://ftp2.de.debian.org/debian experimental main -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (550, 'unstable'), (550, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages apt depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libgcc1 1:4.0.0-12 GCC support library ii libstdc++5 1:3.3.5-13 The GNU Standard C++ Library v3 -- no debconf information -- Philipp Weis [EMAIL PROTECTED] http://pweis.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]