Skip to content

Commit

Permalink
fix: while checking package version update refresh repo data (#658) (#…
Browse files Browse the repository at this point in the history
…659)

(cherry picked from commit e2d28bc)

Co-authored-by: Tanmoy Sarkar <[email protected]>
  • Loading branch information
mergify[bot] and tanmoysrt authored May 25, 2024
1 parent 68c75ff commit 4b48210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swiftwave_service/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func updateDebianPackage(packageName string) (bool, error) {
}

func updateRedHatPackage(packageName string) (bool, error) {
output, err := exec.Command("dnf", "update", packageName, "-y").Output()
output, err := exec.Command("dnf", "update", "--refresh", packageName, "-y").Output()
if err != nil {
return false, err
}
Expand Down

0 comments on commit 4b48210

Please sign in to comment.