From bbf8d0ab3ddd11a893f829898a352707e54c70d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Tue, 22 Dec 2015 10:20:54 +0100 Subject: [PATCH] rpm.py: Add epoch and architecture to lowpkg.info Epoch is essential version information for rpm packages on RHEL and Fedora. Architecture is essential information on all RPM based distributions --- salt/modules/rpm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/modules/rpm.py b/salt/modules/rpm.py index 27534ad6c5..b4686ab28a 100644 --- a/salt/modules/rpm.py +++ b/salt/modules/rpm.py @@ -435,9 +435,11 @@ def info(*packages): # 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: %{NAME}\n" "Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n" + "%|EPOCH?{Epoch: %{EPOCH}\n}|" "Version: %{VERSION}\n" "Vendor: %{VENDOR}\n" "Release: %{RELEASE}\n" + "Architecture: %{ARCH}\n" "Build Date: %{BUILDTIME:date}\n" "Install Date: %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n" "Build Host: %{BUILDHOST}\n"