#1011558 extrepo: configuration set to bookworm even when installed on sid

Package:
extrepo
Source:
extrepo
Submitter:
Celejar
Date:
2024-01-13 09:57:03 UTC
Severity:
normal
Tags:
#1011558#5
Date:
2022-05-24 21:45:30 UTC
From:
To:
The default /etc/extrepo/config/yaml sets "version: bookworm", even when
installed on sid, so  newer entries to the repo list aren't available.
Setting "version: sid" makes them available - shouldn't this be the
default for the sid version of the package?

#1011558#10
Date:
2024-01-13 09:18:55 UTC
From:
To:
Control: severity -1 wishlist
Control: tags -1 wontfix
Thanks

The problem with this is that the config file ships statically, and detecting which distribution you're running is actually quite complicated due to the fact that people may have multiple distributions enabled but then use various intricate apt pinning configurations to decide which distribution to prefer, if any.

The current situation is that we default to the code name of whatever distribution the extrepo package is in (except in unstable, because the package does not change when migrating to testing), which seems like the best possibility here, given the existing constraints.

I did want to give this some thought, but I don't see a way to make this work, and if you're using unstable and would prefer that, then having to edit a config file is not too hard.