From 5a0ec0151cea3048292a297bf5da3eca73c6a090 Mon Sep 17 00:00:00 2001 From: Tiago Stürmer Daitx Date: Sun, 7 Jul 2013 01:42:40 -0300 Subject: add support for pacman package manager --- etckeeper.conf | 2 +- list-installed.d/50list-installed | 2 ++ update-ignore.d/01update-ignore | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/etckeeper.conf b/etckeeper.conf index 80609f4..639c77b 100644 --- a/etckeeper.conf +++ b/etckeeper.conf @@ -34,7 +34,7 @@ DARCS_COMMIT_OPTIONS="-a" HIGHLEVEL_PACKAGE_MANAGER=apt # The low-level package manager that's being used. -# (dpkg, rpm, pacman-g2, etc) +# (dpkg, rpm, pacman, pacman-g2, etc) LOWLEVEL_PACKAGE_MANAGER=dpkg # To push each commit to a remote, put the name of the remote here. diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed index f3f4eed..f392027 100755 --- a/list-installed.d/50list-installed +++ b/list-installed.d/50list-installed @@ -7,4 +7,6 @@ if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then egrep '(ok installed|ok config-files)' | cut -f2,3 elif [ "$LOWLEVEL_PACKAGE_MANAGER" = rpm ]; then rpm -qa --qf "%|epoch?{%{epoch}}:{0}|:%{name}-%{version}-%{release}.%{arch}\n" | sort +elif [ "$LOWLEVEL_PACKAGE_MANAGER" = pacman ]; then + pacman -Q fi diff --git a/update-ignore.d/01update-ignore b/update-ignore.d/01update-ignore index 7b2de72..2659aa6 100755 --- a/update-ignore.d/01update-ignore +++ b/update-ignore.d/01update-ignore @@ -93,7 +93,7 @@ writefile () { comment "new and old versions of conffiles, stored by apt/rpm" ignore "*.rpm*" nl - elif [ "$LOWLEVEL_PACKAGE_MANAGER" = "pacman-g2" ]; then + elif [ "$LOWLEVEL_PACKAGE_MANAGER" = "pacman-g2" -o "$LOWLEVEL_PACKAGE_MANAGER" = "pacman" ]; then comment "new and old versions of conffiles, stored by pacman" ignore "*.pacnew" ignore "*.pacorig" -- cgit v1.2.3