[Bug 1208820] Re: Pinning preferences do not override eachother as expected
Maarten Bezemer
maarten.bezemer at gmail.com
Wed Aug 7 08:34:22 UTC 2013
Thank you for your clarification! It seems reasonable enough to keep the
behavior of apt this way.
** Changed in: apt (Ubuntu)
Status: Opinion => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1208820
Title:
Pinning preferences do not override eachother as expected
Status in “apt” package in Ubuntu:
Invalid
Bug description:
When some pinning rules are added in /etc/apt/preferences.d/ the
priority values of the rules that matches first are used.
Take this example:
Package: *
Pin: release n=raring
Pin-Priority: 990
Package: *
Pin: release o=LP-PPA-my-raring-ppa
Pin-Priority: 50
Results in all packages of my-raring-ppa to have a priority of 990.
(This can be 'fixed' by reverting these two sets of pinning rules)
Furthermore, if
APT::Default-Release "raring";
is used (default in /etc/apt/apt/config.d/01ubuntu), all raring
packages have a priority of 990 and
Package: *
Pin: release o=LP-PPA-my-raring-ppa
Pin-Priority: 50
is not working anymore to set/lower the priority of the my-raring-ppa
packages to 50.
The latter is quite a problem, as this prevents pinning from working properly (IMO).
I do not know whether there are two problems
1) APT::Default-Release is precessed after the preferences
2) Order of pinning rules is reverse-chronological
, or that both problems have the same origin.
$ apt-cache policy apt
apt:
Installed: 0.9.7.7ubuntu4
Candidate: 0.9.7.7ubuntu4
Version table:
0.9.9.1~ubuntu2 0
50 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
*** 0.9.7.7ubuntu4 0
990 http://nl.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
100 /var/lib/dpkg/status
$ lsb_release -rd
Description: Ubuntu 13.04
Release: 13.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1208820/+subscriptions
More information about the foundations-bugs
mailing list