On Tue, Sep 24, 2024 at 11:58:14AM GMT, Vincent Lefevre wrote: > On 2024-09-23 17:52:33 +0000, Helge Kreutzmann wrote: > > Hello David, > > Am Thu, Sep 19, 2024 at 09:55:28PM +0200 schrieb David Kalnischkies: > > > So, if you are interested in the config differences: > > > | apt-config dump Binary::apt > > > > This is a very helpful hint, and I would strongly support having these > > two lines in apt(8). > > I agree. Moreover, this is a bit surprising, because there is no such > thing for apt-get: "apt-config dump Binary::apt-get" returns nothing.
It's not particularly surprising as apt(8) is the new interface that overrides the defaults, so only it has overrides. The problem IMO is that these overrides take precedence over the global options, in an optimal world the search order would look like: 1. Option 2. Binary::<name>::Option 3. <default value for Option> We currently can't do that: The default values are initialized by setting them if they haven't been set yet - only then do we parse the command-line where we set the Binary:: options. Fixing this requires adding a new member to record the "default" value, and then using Binary:: to change the default setting, rather than the global one. Or something like that. It would be nice. -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en

