From 7b80afde4cfcb371b46cb5978bc08404b6dd1077 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Fri, 2 May 2025 09:44:46 -0400 Subject: [PATCH] fix: Only run setopt when there is a repo ID in the list --- modules/dnf/dnf.nu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/dnf/dnf.nu b/modules/dnf/dnf.nu index 164efbe..62c7c57 100644 --- a/modules/dnf/dnf.nu +++ b/modules/dnf/dnf.nu @@ -248,9 +248,8 @@ def add_repos [$repos: list]: nothing -> list { $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 }