Bug#216688: apt/preferences: pinning package to non-automatic priority does not appear to work
Package: apt
Version: 0.5.4
Severity: normal
I have a sources.list pointing to woody and potato, with a
Default-Release of "3.0*". This is because we still need some
packages from potato that were dropped from woody.
But I don't want those packages that were essential in potato, and are
not essential in woody any more (ldso and update), so I try to prevent
them from being installed using preferences, like:
| Package: ldso
| Pin: version 1.9.11-15
| Pin-Priority: 2
The pin is reflected in the policy output near *every* version,
whatever that means, but the priority listed for the sources does not
get changed:
| # apt-cache policy ldso
| ldso:
| Installed: (none)
| Candidate: 1.9.11-15
| Package Pin: 1.9.11-15
| Version Table:
| 1.9.11-15 2
| 990 http://debian-mirror.alcove-fr woody/main Packages
| 1.9.11-9 2
| 500 http://debian-mirror.alcove-fr potato/main Packages
And the version pinned to "2" is still considered candidate:
| # apt-get dist-upgrade --print-uris -y
| Reading Package Lists... Done
| Building Dependency Tree... Done
| Calculating Upgrade... Done
| The following NEW packages will be installed:
| ldso update
| 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
| Need to get 85.4kB of archives. After unpacking 213kB will be used.
| 'http://debian-mirror.alcove-fr/pool/main/u/update/update_2.11-4_i386.deb' update_2.11-4_i386.deb 6426 46640e3a5e9d57976833afbafe7ea9b2
| 'http://debian-mirror.alcove-fr/pool/main/l/ld.so/ldso_1.9.11-15_i386.deb' ldso_1.9.11-15_i386.deb 78980 e36262f73c3229568281e1e3ee38af36
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux vitel 2.4.20-station+usbdev #1 Thu Feb 20 16:32:00 CET 2003 i686
Locale: LANG=french, LC_CTYPE=french
Versions of packages apt depends on:
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
ii libstdc++2.10-glibc2.2 1:2.95.4-11woody1 The GNU stdc++ library
--
Yann Dirson <Yann.Dirson@fr.alcove.com> http://www.alcove.com/
Technical support manager Responsable de l'assistance technique
Senior Free-Software Consultant Consultant senior en Logiciels Libres
Debian developer (dirson@debian.org) Développeur Debian
Reply to: