aboutsummarylogtreecommitdiffstats
path: root/pacman-backup.hook
diff options
context:
space:
mode:
authordtluna2018-12-15 01:36:20 +0300
committerdtluna2018-12-15 01:36:20 +0300
commit3211921634a930b74d35b10ca718c92109db2fbd (patch)
tree8344289f2b5e3a6eb1220a7a153a6296a60bbf4e /pacman-backup.hook
parent6201ec8ce89ccec1250cdf833ad672b5ce223820 (diff)
downloadaur-3211921634a930b74d35b10ca718c92109db2fbd.tar.gz
Include the hook into repo
Diffstat (limited to 'pacman-backup.hook')
-rw-r--r--pacman-backup.hook9
1 files changed, 9 insertions, 0 deletions
diff --git a/pacman-backup.hook b/pacman-backup.hook
new file mode 100644
index 000000000000..bf422785937a
--- /dev/null
+++ b/pacman-backup.hook
@@ -0,0 +1,9 @@
+[Trigger]
+Operation = Install
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+When = PostTransaction
+Exec = /bin/sh -c 'pacman -Qqe > /etc/pkglist.txt' \ No newline at end of file