Permalink
Browse files

Implement list-installed for rpm. (Untested)

  • Loading branch information...
1 parent 16c86e8 commit 9d2c186b389fb663c6c15e356691d149ce917dd2 Joey Hess committed Feb 18, 2009
Showing with 8 additions and 5 deletions.
  1. +0 −5 TODO
  2. +6 −0 debian/changelog
  3. +2 −0 list-installed.d/50list-installed
View
5 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.
View
6 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.
View
2 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

0 comments on commit 9d2c186

Please sign in to comment.