Skip to content

Commit

Permalink
update dnf addrepo command
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Nov 28, 2024
1 parent fe06f73 commit 4b8d944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion entity/dnfrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (i installer) configManagerInstall(repo string) error {
return err
}

cmd := fmt.Sprintf("dnf config-manager --add-repo %s", repo)
cmd := fmt.Sprintf("dnf config-manager addrepo --from-repofile=%s", repo)
return i.runMaybeSudo(cmd)
}

Expand Down
1 change: 1 addition & 0 deletions provision/osrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func addRepos(config entity.Config) error {

err := repo.Install()
if err == nil && repo.UpdateCmd() != "" {
internal.Log.Errorf("Error installing repo %s: %v", repo.Name(), err)
updateCmds.Add(repo.UpdateCmd())
}
errs = append(errs, err)
Expand Down

0 comments on commit 4b8d944

Please sign in to comment.