[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pinning not working



Boyd Stephen Smith Jr. a écrit :
> In <[🔎] 20090331142022.GA12247@osamu.debian.net>, Osamu Aoki wrote:
>> It is tricky but apt-pin only works with
>> testing/stable/unstable/experimental/... suite names.
> 
> Technically,
> release a=<foo>
> matches any package where its repository's Release file has:
> Suite: <foo>
> 
> It's just that the Release files in the official repositories use the 
> stable/testing/unstable instead of Lenny/Squeeze/Sid monikers.
> 
> Over @ backports.org, they use lines like:
> Suite: lenny-backports
> in their Release files, so it is different.
> 
> The apt_preferences manpage still refers to an 'Archive:' line which isn't 
> in the current release files.  It also doesn't mention any way to match the 
> 'Codename:' line.

For external repo like backport, one can use the "origin":

Package: *
Pin: origin backports.org
Pin-Priority: 101

"origin" must be the same as the "origin" line in the output of
apt-cache policy. (check it for backports, as I don't use it.)

Tom


Reply to: