From 1bf40dd21d5603b6319492a01fdf323e9d658560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 23 Aug 2018 08:57:05 +0200 Subject: [PATCH] Skip showing empty Relocations line in rpm -qi 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. --- rpmpopt.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmpopt.in b/rpmpopt.in index 957a684552..8aaa91f117 100644 --- a/rpmpopt.in +++ b/rpmpopt.in @@ -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}|\