Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 97b57b4

Browse files
authored
Merge pull request #315 from hitthatrowdyy/fix-rpm-diff
Fix RPM differ to to include release of version
2 parents b09893a + 131aacd commit 97b57b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

differs/rpm_diff.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const rpmMacros string = "/usr/lib/rpm/macros"
5151
//RPM command to extract packages from the rpm database
5252
var rpmCmd = []string{
5353
"rpm", "--nodigest", "--nosignature",
54-
"-qa", "--qf", "%{NAME}\t%{VERSION}\t%{SIZE}\n",
54+
"-qa", "--qf", "%{NAME}\t%{VERSION}-%{RELEASE}\t%{SIZE}\n",
5555
}
5656
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
5757

0 commit comments

Comments
 (0)