From 20fa64d65a8263065e7a69852a094e081fdfbd0d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Feb 2009 21:46:29 -0500 Subject: As part of the darcs support, change the apt hook to run Pre-Invoke, rather than Pre-Install-Pkgs. Gian Piero Carrubba > It seems to me that etckeeper doesn't use the package names received on the > stdin and I think there's no other (substantial) difference between these two > hooks. OTH, this allows the use of darcs w/o the -a option to the record > command (commit w/o confirmation) and it's useful for examining automatic > pre-install commits. --- apt.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apt.conf b/apt.conf index bd6afc5..30ac586 100644 --- a/apt.conf +++ b/apt.conf @@ -1,5 +1,5 @@ -DPkg::Pre-Install-Pkgs { "if [ -x /usr/sbin/etckeeper ]; then etckeeper pre-install; fi"; }; +DPkg::Pre-Invoke { "if [ -x /usr/sbin/etckeeper ]; then etckeeper pre-install; fi"; }; DPkg::Post-Invoke { "if [ -x /usr/sbin/etckeeper ]; then etckeeper post-install; fi"; }; -RPM::Pre-Install-Pkgs { "if [ -x /usr/sbin/etckeeper ]; then etckeeper pre-install; fi"; }; +RPM::Pre-Invoke { "if [ -x /usr/sbin/etckeeper ]; then etckeeper pre-install; fi"; }; RPM::Post-Invoke { "if [ -x /usr/sbin/etckeeper ]; then etckeeper post-install; fi"; }; -- cgit v1.2.3