#1094709 apt modernize-sources should fail when it doesn't do the conversion faithfully

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Helmut Grohne
Date:
2025-02-25 20:45:04 UTC
Severity:
normal
#1094709#5
Date:
2025-01-30 08:43:56 UTC
From:
To:
Hi Julian,

apt modernizes should not silently discard relevant aspects of your
sources.list in the conversion process. An example where this happens
is:

| deb [target-=Contents-deb] http://deb.debian.org/debian-debug/ unstable-debug main

While it would be nice to have it perform a successful conversion here,
more crucially it should fail when it cannot convert it without
discarding the [target=-Contents-deb]. If it solves 90% of the common
cases, that feels good enough to me, but it really should give up in the
other ones.

Helmut

#1094709#10
Date:
2025-02-20 12:24:44 UTC
From:
To:
Another thing it ignores is the `arch=` option. It would be nice if it
converted it to an `Architectures:` line.

#1094709#15
Date:
2025-02-25 20:40:50 UTC
From:
To:
Comments, arch= and others all need a refactoring of the sources.list
parser so we can actually read the parsed lists, currently we are trying
to recompose it from much further down the stack, and I need to find
time to do that, but hopefully soon.