Cannot Pin on components
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
If I have an /etc/apt/
modulo s/hoary/warty/):
Package: *
Pin: release o=Ubuntu,
Pin-Priority: -2
apt-cache policy returns:
Package files:
100 /var/lib/
release a=now
500 http://
release v=5.04,
origin security.ubuntu.com
500 http://
release v=5.04,
origin security.ubuntu.com
500 http://
release v=5.04,
origin us.archive.
500 http://
release v=5.04,
origin us.archive.
500 http://
release v=5.04,
origin us.archive.
500 http://
release v=5.04,
origin us.archive.
500 http://
release v=5.04,
origin us.archive.
Pinned packages:
In warty it would have listed the component as c=universe, and pinned the
universe component properly. AFAICT the main difference (outside the code which
I haven't looked at yet) is that hoary does not download the component Release
files
(http://
So perhaps it doesn't know how to correlate 'c=universe' in /etc/apt/
with 'Components: main restricted universe multiverse' in
/var/lib/
it is being too smart by not downloading the individual Release files which it
can parse?
Either way I am unable to Pin on a component.
You analysis is correct, the fact that the individual Release files are no
longer used and only the global one is used caused this problem.