fix: Only run setopt when there is a repo ID in the list

This commit is contained in:
Gerald Pinder 2025-05-02 09:44:46 -04:00
parent d592ff0944
commit 7b80afde4c

View file

@ -248,9 +248,8 @@ def add_repos [$repos: list]: nothing -> list<string> {
$repo_ids
| each {
print $'Enabling repo (ansi cyan)($in)(ansi reset)'
$'($in).enabled=1'
dnf config-manager setopt [$'($in).enabled=1']
}
| dnf config-manager setopt $in
$repo_ids
}