Am Fri, Dec 27, 2024 at 02:36:51AM -0800, schrieb Josh Triplett:
apt-get and apt support a -U option to update before running the
command. Please consider providing an option in apt.conf to always act
Given how command line parsing works in apt, this already has a config option… `APT::Update` (but Julian was faster than I was; lets sent the
mail anyway).
as if this option were provided. That would allow (for instance) CI
systems to make `apt install xyz` Just Work.
At the expense of just breaking mirrors as there is no cooldown or
anything that would stop apt from asking the mirror every time even if
you chain hundreds of install calls together like most people do in CI.
It is also kinda likely to break scripts or surprise you in other clever
ways as it quiet literally does what it says in the man page… so it e.g. effects also an innocent "apt install --dry-run foo" call. And the man
page mentions other problems.
In my eyes, this needs more work before we can let that loose on the
general public, but obviously, that wasn't my call to make.
I wonder if you wouldn't be better served by a "if lists/ is empty, call
update first" rather than a "call it all the time" – to at least trim
away some of problems this "magic update call" causes.
"true", "false", and (perhaps in the future) "binaries" (to update only binary repos and not source repos).
Unlikely as they tend to come in pairs (or the deb-src as an addendum to
the deb if you prefer to look at it this way), but are secured by the
same Release file, so you can't just "half"-update from the repository
as apt wouldn't know anymore which files are current or not. Beside,
are Components, Icons, Translations, Contents, … and all the other
potential targets part of your 'binaries' set or not?
(There are bugs with the existing ways of entering such a "half" update
state in the form of --no-list-cleanup already that will be hard enough
to solve without adding more pain)
Best regards
David Kalnischkies
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE5sn+Q4uCja/tn0GrMRvlz3HQeIMFAmdurboACgkQMRvlz3HQ eINtBA//b7L7OIVx1OtDSpHLvm5NkVllQXt21fnQN85rcBfEHIcrlaF8BInQbU8x ZWzEovCz2R/njpqur7uGVDUKe81ZzMxTacfYqLkY6cJAJ7G5tXGqSHgxwjOcmlV5 IqDY44XttsFGk91W3MaCDGxPHt1fbNvXVu7OKHOKWk2WqsmxyJ7+eiApVrHcu4wd /BA1RE2YkGLSkcuy0hok523T5bliy3Ci0gmQnyTYEmEsgHthAdKMn/FNF5omyb2f r3SUzfWfsLaEw425gmA+nIizpciOhGmdfFYw0CoNlkCvyDsLr6mT0VxAtJ0LC+kL si+IDpwqYPwo0wMXk9girp3/4SAwEEqAWAJL7k8sGm/VAbOedBsHM0+6HtnXlLZ8 z55GlX86hjy+ZuLU3LSLKZnMAWBnvQcPMU1b6FGr0Re/6gxbzcI4WUwGuJ9x8zAo wSR9GJzEB7GxefgxL5/8MeXAgF8kmkvyLEbNVlyqT/I5X89UgAygDSG8MF0eHP5p 3YjAToNjH2xPgyExXtJbOak2jV2puCJZjWJde9lsD2B8oKlCvnz+m3VWn4OCOF/a V5oPpH0yG1Vg3xQpQpsJ4VxUnRAhGmUF/jiBNiFAuPoX1F9xrHIliyU+FWX9KnRg WVtPw6vGRfpwhJTEk1me+80TuoDAQPevwoW/+MXEt79CW8ar37k=
=2G0Y
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)