Open scaronni opened 2 days ago
For the second case, I can make it work like this, but it requires also the epoch and is not like the man page describes:
version = "1.0"
[[packages]]
name = "nvidia-driver"
[[packages.conditions]]
key = "evr"
comparator = ">="
value = "3:565"
[[packages.conditions]]
key = "evr"
comparator = "<"
value = "3:570"
The plugin
versionlock
does not work properly. Taking into account the differences compared to the DNF4 plugin, it still does not behave correctly.At Nvidia we're trying to get away from packages with the branch name in the actual package name and would like to switch to standard tools for doing branch locking. It works fine in DNF4, it does not in DNF5.
First issue: automatic filtering. Test is done on the same repository.
DNF4:
Then I can edit the
versionlock.list
file very simply by moving wildcards back and forth (ex. to keep stuff on the 565 branch).DNF5:
On DNF5 it's not picking all the packages, I can't figure out what is the logic that is being applied for the wildcard selection, it seems pretty random.
Second issue: editing the file. According to the man page, the
/etc/dnf/versionlock.toml
accepts various keys in thekey
field:But actually none of those is supported, so I can't say for example pick anything which has the 565 version: