fix: Only run setopt when there is a repo ID in the list
This commit is contained in:
parent
d592ff0944
commit
7b80afde4c
1 changed files with 1 additions and 2 deletions
|
|
@ -248,9 +248,8 @@ def add_repos [$repos: list]: nothing -> list<string> {
|
||||||
$repo_ids
|
$repo_ids
|
||||||
| each {
|
| each {
|
||||||
print $'Enabling repo (ansi cyan)($in)(ansi reset)'
|
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
|
$repo_ids
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue