Bug#868276: apt_preferences(5): explain how one would combine e.g. origin, version and release Pins
- To: 868276@bugs.debian.org
- Subject: Bug#868276: apt_preferences(5): explain how one would combine e.g. origin, version and release Pins
- From: Colomban Wendling <cwendling@hypra.fr>
- Date: Wed, 22 Jun 2022 10:19:43 +0200
- Message-id: <[🔎] f78f09f1-d246-fdde-fb76-f63114e18cdd@hypra.fr>
- Reply-to: Colomban Wendling <cwendling@hypra.fr>, 868276@bugs.debian.org
- In-reply-to: <163839226909.85343.15407298388237985577.reportbug@localhost.localdomain>
- References: <163839226909.85343.15407298388237985577.reportbug@localhost.localdomain> <163839226909.85343.15407298388237985577.reportbug@localhost.localdomain> <149999142729.30908.9594548634745897644.reportbug@heisenberg.scientia.net>
On Wed, 01 Dec 2021 21:57:49 +0100 Jérémy Lal wrote:
I think the comma works:
Pin: version 10, release o=ACME
I can't test with recent enough versions of Apt yet (I don't have
repositories at hand that allows me to properly test this yet), but at
least in 1.8.2.3 (buster, yeah, I know), I can't seem to combine
multiple keywords:
> Pin: release n=buster, l=Vendor
works, but:
> Pin: release n=buster, origin "debian.vendor.tld"
does not (and applies to all "release n=buster", no warnings attached)
-- yet they work separately, e.g. each alone in a Pin: line.
Often enough we can use some "release" tags to get our way, but it's an
inconvenient and sad limitation -- and as mentioned in the OP, the
documentation is unclear on the subject matter.
- Colomban
PS: my test includes 2 packages that appear both in both Debian and a
vendor repository, one newer in Debian's n=buster, and the other newer
in vendor's n=buster-backports. The idea is that I should be able to
match all Debian n=buster, Debian n=buster-backports, Vendor's n=buster
and Vendor n=buster-backports *separately*.
Reply to: