[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1101134: poor support of Enabled: no



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


Reply to: