summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-05-15 20:33:26 +0200
committerJoey Hess <joeyh@joeyh.name>2016-05-17 10:24:36 -0400
commit0508e49afbe30ecd83311fb42a8eeabb40dd27b0 (patch)
tree3e0f0e73e06c1523c7bb5307221f9e863318440d
parent57c4d42d7eb9e648b996ae7f8baba29fa91fac7d (diff)
Do not run pacman hooks on every package change but when /etc/* changes
Currently the hooks are run even if no files in /etc/ are changed. Do run hooks then but only when files in /etc/ change. Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--pacman-post-install.hook4
-rw-r--r--pacman-pre-install.hook4
2 files changed, 4 insertions, 4 deletions
diff --git a/pacman-post-install.hook b/pacman-post-install.hook
index 79d1945..b0f1816 100644
--- a/pacman-post-install.hook
+++ b/pacman-post-install.hook
@@ -4,8 +4,8 @@
Operation = Install
Operation = Upgrade
Operation = Remove
-Type = Package
-Target = *
+Type = File
+Target = /etc/*
[Action]
Description = etckeeper: post-transaction commit
diff --git a/pacman-pre-install.hook b/pacman-pre-install.hook
index 5ef52eb..35bf7df 100644
--- a/pacman-pre-install.hook
+++ b/pacman-pre-install.hook
@@ -4,8 +4,8 @@
Operation = Install
Operation = Upgrade
Operation = Remove
-Type = Package
-Target = *
+Type = File
+Target = /etc/*
[Action]
Description = etckeeper: pre-transaction commit