summarylogtreecommitdiffstats
path: root/pkgfile.hook
diff options
context:
space:
mode:
Diffstat (limited to 'pkgfile.hook')
-rw-r--r--pkgfile.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgfile.hook b/pkgfile.hook
new file mode 100644
index 000000000000..18bb465aaf0d
--- /dev/null
+++ b/pkgfile.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+Description = Updating pkgfile database
+When = PostTransaction
+Exec = /bin/sh -c 'pkgfile --update --quiet <&- >&- 2>&- &'