summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-24 16:09:24 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-24 16:09:24 -0500
commit0586e023a870cb1fc2370eb0a30eb031cc091d6b (patch)
treedfa7c53827d1e9ad1d46badd55a03c81b0035991
parent9d2c186b389fb663c6c15e356691d149ce917dd2 (diff)
add arch to list-installed for rpm
-rw-r--r--debian/changelog2
-rwxr-xr-xlist-installed.d/50list-installed4
2 files changed, 3 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index aa052bc..bbfb9be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
etckeeper (0.32) UNRELEASED; urgency=low
- * Implement list-installed for rpm. (Untested)
+ * Implement list-installed for rpm.
-- Joey Hess <joeyh@debian.org> Tue, 17 Feb 2009 21:49:29 -0500
diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed
index eb3ec96..177a6c2 100755
--- a/list-installed.d/50list-installed
+++ b/list-installed.d/50list-installed
@@ -1,10 +1,10 @@
#!/bin/sh
# Output to stdout a *sorted* list of all currently installed
# (or removed but still with config-files) packages, in the
-# format "package version\n".
+# format "package version\n" (or something similar).
if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then
dpkg-query -W -f '${Status}\t${Package} ${Version}\n' | \
egrep '(ok installed|ok config-files)' | cut -f2,3
elif [ "$LOWLEVEL_PACKAGE_MANAGER" = rpm ]; then
- rpm -qa --queryformat "%{name} %{version}\n" | sort
+ rpm -qa --queryformat "%{name} %{version} %{arch}\n" | sort
fi