Skip to content

Commit

Permalink
Skip showing empty Relocations line in rpm -qi
Browse files Browse the repository at this point in the history
Almost nobody uses them, so the
"Relocations : (not relocatable)" line is a waste of screen estate.
Just output the line if there's something interesting to show.
  • Loading branch information
keszybz authored and pmatilai committed Aug 24, 2018
1 parent 4cc32de commit 1bf40dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpmpopt.in
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Signature : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig
Source RPM : %{SOURCERPM}\n\
Build Date : %{BUILDTIME:date}\n\
Build Host : %{BUILDHOST}\n\
Relocations : %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
%|PREFIXES?{Relocations : [%{PREFIXES} ]\n}|\
%|PACKAGER?{Packager : %{PACKAGER}\n}|\
%|VENDOR?{Vendor : %{VENDOR}\n}|\
%|URL?{URL : %{URL}\n}|\
Expand Down

0 comments on commit 1bf40dd

Please sign in to comment.