summaryrefslogtreecommitdiff
path: root/pacman-pre-install.hook
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-pre-install.hook')
-rw-r--r--pacman-pre-install.hook15
1 files changed, 15 insertions, 0 deletions
diff --git a/pacman-pre-install.hook b/pacman-pre-install.hook
new file mode 100644
index 0000000..7d636dc
--- /dev/null
+++ b/pacman-pre-install.hook
@@ -0,0 +1,15 @@
+# etckeeper pre-install hook for Pacman 5 and newer
+
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+Description = etckeeper pre-install hook
+When = PreTransaction
+Exec = /usr/bin/etckeeper pre-install
+Depends = etckeeper
+AbortOnFail