#839403 apt: define default pin priority for a source in sources.list directly

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Raphaël Hertzog
Date:
2023-10-05 18:45:05 UTC
Severity:
wishlist
#839403#5
Date:
2016-10-01 13:54:23 UTC
From:
To:
Hello I would like to be able to use something like this in my
sources.list:

deb [pin-priority=500] http://ftp.debian.org/debian experimental main

(or "Pin-Priority: 500" in a RFC822 formatted sources.list entry)

This would let me easily override the NotAutomatic flag... without having
to modify another file and without having to look up what is the proper
tag to match that specific repository.

#839403#10
Date:
2022-08-02 08:32:43 UTC
From:
To:
Hi,

I also think this would be nice to have. Adding an extra field to
sources.list is simpler than having to maintain an additional file for
the pinning.

Besides the common use case of adding unstable to a system running
Debain testing, it would also make it easier to add additional suites
to a system running stable to pull in debian-installer-*-netboot-*
packages for multiple releases.

It would also be nice if there were named values as well, like

  Pin-Priority: not-automatic
  Pin-Priority: automatic-upgrades

having similar effect as "NotAutomatic: yes" respectively
"ButAutomaticUpgrades: yes" in Release. (Obivously choosing a nice name
is hard.)

Ansgar

#839403#15
Date:
2023-10-05 18:43:15 UTC
From:
To:
Hello,

Today I stumbled upon another case where something like this would have
been useful, to be able to tweak priorities of APT repositories injected
in autopkgtest test chroots with --add-apt-release:
https://salsa.debian.org/freexian-team/debusine/-/merge_requests/300#note_432326

This feature request doesn't seem super hard to implement, is there any
chance that someone could tackle it?

Cheers,