Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1224128

Bug#1086701: autopkgtest: Same package version considered downgrade

From Simon McVittie <smcv@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1086701: autopkgtest: Same package version considered downgrade
Date 2024-12-15 17:30 +0100
Message-ID <JTZFf-heSm-11@gated-at.bofh.it> (permalink)
References <JF4dQ-6z2C-9@gated-at.bofh.it> <JF4dQ-6z2C-9@gated-at.bofh.it> <JF9dv-6BYD-3@gated-at.bofh.it> <JF4dQ-6z2C-9@gated-at.bofh.it> <JF9dv-6BYD-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 04 Nov 2024 at 18:29:55 +0100, Paride Legovini wrote:
> 2. We move /etc/apt/sources.list *last* in the list of sources, e.g. to
> /etc/apt/sources.list/zz-sources.list. This is more correct, but should
> be done carefully. You can play with with workaround by passing:
> 
>     --setup-commands="mv /etc/apt/sources.list
> /etc/apt/sources.list.d/zz-sources.list"
> 
> And we need a test case for this, as it's way too easy to regress.

Does this proposal work to solve the problem, without applying artificial
modifications to the built package as in the MR that you ended up
proposing?

I observe that in newer Debian installations and container images,
/etc/apt/sources.list is not present, and the OS's own apt sources are
in deb822 format in /etc/apt/sources.list.d/${DEB_VENDOR}.sources.
autopkgtest-build-* and setup-testbed do not set up this situation (yet),
and indeed they might revert it, but other pieces of infrastructure do.

So I think it might be a more realistic reflection of a real Debian system
if we wrote the `deb [ trusted=yes ] file://%(d)s /` apt source that is
used to supply the just-built packages into a very "early" filename
(perhaps 00-autopkgtest.list instead of the current autopkgtest.list),
and renamed /etc/apt/sources.list (if it exists) to something like
/etc/apt/sources.list/autopkgtest-os-default.list?

    smcv

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1086701: autopkgtest: Same package version considered downgrade Simon McVittie <smcv@debian.org> - 2024-12-15 17:30 +0100
  Bug#1086701: autopkgtest: Same package version considered downgrade Paride Legovini <paride@debian.org> - 2024-12-17 14:50 +0100

csiph-web