Remove unnecessary padding from rpm.info

This commit is contained in:
Brendan McGrath 2015-10-19 15:20:21 -07:00
parent 4987530986
commit 07413ec162

View file

@ -429,17 +429,17 @@ def info(*packages):
cmd = packages and "rpm -q {0}".format(' '.join(packages)) or "rpm -qa"
# Locale needs to be en_US instead of C, because RPM otherwise will yank the timezone from the timestamps
call = __salt__['cmd.run_all'](cmd + (" --queryformat 'Name: %-27{NAME}\n"
call = __salt__['cmd.run_all'](cmd + (" --queryformat 'Name: %{NAME}\n"
"Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n"
"Version: %-27{VERSION}\n"
"Version: %{VERSION}\n"
"Vendor: %{VENDOR}\n"
"Release: %-27{RELEASE}\n"
"Release: %{RELEASE}\n"
"Build Date: %{BUILDTIME:date}\n"
"Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }|\n"
"Install Date: %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n"
"Build Host: %{BUILDHOST}\n"
"Group: %-27{GROUP}\n"
"Group: %{GROUP}\n"
"Source RPM: %{SOURCERPM}\n"
"Size: %-27{LONGSIZE}\n"
"Size: %{LONGSIZE}\n"
"%|LICENSE?{License: %{LICENSE}\n}|"
"Signature: %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n"
"%|PACKAGER?{Packager: %{PACKAGER}\n}|"