Bug#355237: Pin-Priority: -1 doesn't work as expected
Package: apt
Version: 0.6.43.3
Severity: normal
Hi,
it seems that the Pin-Priority of -1 doesn't do what it should do:
root@morpheus:/etc/apt>apt-cache policy tetex-base
tetex-base:
Installed: (none)
Candidate: 3.0-15
Package pin: 3.0-15
Version table:
3.0-15 -1
500 http://debian sid/main Packages
3.0-14 -1
500 http://debian etch/main Packages
2.0.2c-8 -1
500 http://debian sarge/main Packages
man apt_preferences says that the priority -1 prevents a version from
being installed. But the above output shows that all versions get the
same priority and thus the highest version would be installed.
Have a look at my preferences file which _explicitly_ lists version
3.0.15 and assigns it the priority -1, however this has not the desired
effect.
Andreas
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Cache-Limit "12582912";
APT::FTPArchive "";
APT::FTPArchive::MD5 "on";
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::sourceparts "sources.list.d";
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:: "if dpkg -s apt-listbugs | grep -q '^Status: .* ok installed'; then /usr/sbin/apt-listbugs apt || ( test $? -ne 10 || exit 10; echo 'Warning: apt-listbugs exited abnormally, hit enter key to continue.' 1>&2 ; read a < /dev/tty ); fi";
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";
Aptitude "";
Aptitude::Styles "";
Aptitude::Styles::Default "";
Aptitude::Styles::Default::bg "default";
Aptitude::Purge-Unused "true";
-- /etc/apt/preferences --
Package: tetex-base
Pin: version 3.0-15
Pin-Priority: -1
-- /etc/apt/sources.list --
#Lame Encoder + mplayer + realplayer
deb http://marillat:9999/marillat/ sid main
#Main Unstable Sites
deb http://debian:9999/debian/ sid main contrib non-free
deb http://debian:9999/debian/ etch main contrib non-free
#include stable sources.list for the cases when I'm not in HRO
deb http://debian:9999/debian/ sarge main contrib non-free
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-cherry
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages apt depends on:
ii libc6 2.3.6-3 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.2-9 GCC support library
ii libstdc++6 4.0.2-9 The GNU Standard C++ Library v3
Versions of packages apt recommends:
ii debian-archive-keyring 2006.01.18 GnuPG archive keys of the Debian a
-- no debconf information
Reply to: