Bug#429912: apt_preferences: lacks explanation of priority 0
Control: tag -1 pending
On Thu, Jun 21, 2007 at 04:25:58PM +0800, Manphiz wrote:
> Package: apt
> Version: 0.6.46.4-0.1
> Severity: wishlist
>
> The man page of apt_preferences lacks the explanation when priority
> equals 0. Here is an excerpt:
>
> 0 < P <=100
> causes a version to be installed only if there is no installed
> version of the package
>
> P < 0
> prevents the version from being installed
>
> As we can see, the above didn't mention what would happen when P=0.
> Seems at least an incompletion in documentation. According to the
> changelog from 0.7.0 to 0.7.2 there is no mention about this issue, so I
> assume this problem applies to 0.7.2 too.
That's not really a bug, that's intended. Pin-Priority: 0 has undefined
behavior. And we warn for it.
In practice, it will probably simply disable specific pinning and
force the priority of a package to be determined by the maximum
of all sources it is contained in.
But it's undefined behavior.
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
- If you don't I might ignore you.
Reply to: