summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-17 21:49:51 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-17 21:49:51 -0500
commit9d2c186b389fb663c6c15e356691d149ce917dd2 (patch)
tree88a25513581837e6a49b90857579a3b097b7c63f
parent16c86e81564f0e2e2fd0173235913028c9310907 (diff)
Implement list-installed for rpm. (Untested)
-rw-r--r--TODO5
-rw-r--r--debian/changelog6
-rwxr-xr-xlist-installed.d/50list-installed2
3 files changed, 8 insertions, 5 deletions
diff --git a/TODO b/TODO
index c2dbe7a..4b3927f 100644
--- a/TODO
+++ b/TODO
@@ -24,8 +24,3 @@
This is already doable, would just need modifying the pre-install and
post-instlal stuff (ie, it needs to commit in the subdirs too). Using mr
would be a possibility..
-
-* Figure out what packages were acted on, and include that info in the commit
- message
-
- Done for dpkg, but not for other package managers like rpm.
diff --git a/debian/changelog b/debian/changelog
index 8bc3dca..aa052bc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+etckeeper (0.32) UNRELEASED; urgency=low
+
+ * Implement list-installed for rpm. (Untested)
+
+ -- Joey Hess <joeyh@debian.org> Tue, 17 Feb 2009 21:49:29 -0500
+
etckeeper (0.31) unstable; urgency=low
* Avoid relying on USER being set, won't be for cron job.
diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed
index 116a42a..eb3ec96 100755
--- a/list-installed.d/50list-installed
+++ b/list-installed.d/50list-installed
@@ -5,4 +5,6 @@
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
fi