Skip to content

Commit 131aacd

Browse files
committed
add -%{RELEASE} to the rpm command line 54
1 parent b09893a commit 131aacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

differs/rpm_diff.go

Lines changed: 1 addition & 1 deletion
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)