:: Re: [DNG] APT pinning no longer wor…
Pàgina inicial
Delete this message
Reply to this message
Autor: Rainer Weikusat
Data:  
A: dng
Assumpte: Re: [DNG] APT pinning no longer works
Mitt Green <mitt_green@???> writes:

[...]


> Starting from this version pinning
> (i.e. preventing from being installed)
> packages this way:
> -------------------------------------------
> Package: foo
> Pin: release *
> Pin-Priority: -1
> -------------------------------------------
> doesn't work anymore.


Judging from the documentation, this should probably be something like

Package: foo
Pin: release a=*
Pin-Priority: -1

for "Don't install any foo from a release with any archive name" or

Package: foo
Pin: release o=*
Pin-Priority: -1

for "Don't install anything named foo, no matter how the originator of
such a package choses to refer to himself", cf

    APT also supports pinning by glob(7) expressions, and regular
    expressions surrounded by slashes.


        [...]


        The rule for those expressions is that they can occur anywhere
        where a string can occur.
        (1.1.3 apt_preferences(5))


Using patterns in an origin argument might work too, if hostnames are
considered strings. The man page neither explictly allows nor denies
that, however, I expect "not a string but a hostname".