Skip to content

Commit 4b48210

Browse files
fix: while checking package version update refresh repo data (#658) (#659)
(cherry picked from commit e2d28bc) Co-authored-by: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com>
1 parent 68c75ff commit 4b48210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swiftwave_service/cmd/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func updateDebianPackage(packageName string) (bool, error) {
9393
}
9494

9595
func updateRedHatPackage(packageName string) (bool, error) {
96-
output, err := exec.Command("dnf", "update", packageName, "-y").Output()
96+
output, err := exec.Command("dnf", "update", "--refresh", packageName, "-y").Output()
9797
if err != nil {
9898
return false, err
9999
}

0 commit comments

Comments
 (0)