summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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