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

Re: Package pinning on origin AND version



On 02/06/2018 02:16 PM, The Wanderer wrote:
On 2018-02-06 at 07:52, Adam Cecile wrote:

On 02/06/2018 01:46 PM, The Wanderer wrote:

Pin: version 1.3.*, release o=packages.le-vert.net
Hello,

Thanks for the answer, sadly it's not working:

mesos:
    Installed: 1.3.1-1+Debian-stretch-9.1
    Candidate: 1.4.1-1+Debian-stretch-9.1
Not sure what may be causing that. Just as a stab in the dark, maybe try
it with 'Pin-Priority: 1001', in case something else is setting the
priority of the 1.4.x version to 1000? (Again per 'man apt_preferences',
when two versions have equal priority, the higher version number wins
out.)

Note that a priority greater than 1000 will lead the matching version to
be considered even when it would be a version-number downgrade from the
installed version. That may be what you want (it often is, for me), but
it's something that's good to be aware of.

If you're interested in testing yourself, it's pretty easy both repositories are public:

echo "deb http://packages.le-vert.net/mesos/debian stretch main" > /etc/apt/sources.list.d/packages.le-vert.net_mesos.list echo "deb http://repos.mesosphere.io/debian jessie main" > /etc/apt/sources.list.d/mesosphere.list

I guess the coma works only if you're using subfilters of "release", like as stated in the documentation. So maybe what I'm trying to do is simply not supported, but I'd like to have a confirmation before I seek for a different solution (any hint would be appreciated...)

Regards, Adam.


Reply to: