Bug#1101134: poor support of Enabled: no

Julian Andres Klode <[email protected]>
Newsgroups gmane.linux.debian.apt.devel
Message-ID <20250324104504.GA1844169__1372.75144677318$1742809889$gmane$org@debian.org>
On Sun, Mar 23, 2025 at 04:39:24PM +0100, Harald Dunkel wrote:
> Package: apt
> Version: 2.9.34
> 
> sources.list:
> #deb		http://deb.debian.org/debian experimental main contrib non-free non-free-firmware
> #deb-src	http://deb.debian.org/debian experimental main contrib non-free non-free-firmware
> deb		http://deb.debian.org/debian sid main contrib non-free non-free-firmware
> deb-src		http://deb.debian.org/debian sid main contrib non-free non-free-firmware
> deb		http://deb.debian.org/debian testing main contrib non-free non-free-firmware
> deb-src		http://deb.debian.org/debian testing main contrib non-free non-free-firmware
> #deb		http://deb.debian.org/debian stable main contrib non-free
> #deb-src	http://deb.debian.org/debian stable main contrib non-free
> 
> 
> should have been mapped to
> 
> debian.sources:
> # Modernized from /etc/apt/sources.list
> Types: deb deb-src
> URIs: http://deb.debian.org/debian/
> Suites: experimental
> Components: main contrib non-free non-free-firmware 
> Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
> Enabled: no
> 
> # Modernized from /etc/apt/sources.list
> Types: deb deb-src
> URIs: http://deb.debian.org/debian/
> Suites: sid
> Components: main contrib non-free non-free-firmware 
> Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
> Enabled: yes
> 
> # Modernized from /etc/apt/sources.list
> Types: deb deb-src
> URIs: http://deb.debian.org/debian/
> Suites: testing
> Components: main contrib non-free non-free-firmware 
> Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
> Enabled: yes
> 
> # Modernized from /etc/apt/sources.list
> Types: deb deb-src
> URIs: http://deb.debian.org/debian/
> Suites: stable
> Components: main contrib non-free
> Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
> Enabled: no
> 
> 

I'm not quite sure what you are asking for here, tbh. First of all,
half the lines in your sources.list are commented out and not using
[enabled=no] so they will be discarded as we can't preserve comments.

> Please note the Enabled lines. It should be easy to add the "Enabled: yes"
> lines by default.

Then you talk about this, and sure, this would be easy to add, but
that's not the canonical form: `yes` is the default value, and fields
with default values should not be rendered.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.