From 0508e49afbe30ecd83311fb42a8eeabb40dd27b0 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 15 May 2016 20:33:26 +0200 Subject: 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 --- pacman-post-install.hook | 4 ++-- pacman-pre-install.hook | 4 ++-- 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 -- cgit v1.2.3