summarylogtreecommitdiffstats
path: root/rebuild-detector-cleanup.hook
diff options
context:
space:
mode:
Diffstat (limited to 'rebuild-detector-cleanup.hook')
-rw-r--r--rebuild-detector-cleanup.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/rebuild-detector-cleanup.hook b/rebuild-detector-cleanup.hook
new file mode 100644
index 000000000000..2a0ca4663896
--- /dev/null
+++ b/rebuild-detector-cleanup.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Type = Package
+Operation = Remove
+Target = *
+
+[Action]
+Description = Ensure the removed packages are not present in the rebuild-pending list
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/rebuild-detector-cleanup
+NeedsTargets