summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-09-04 23:15:54 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-09-04 23:15:54 +0200
commitde6846447371adc778291ea1361b7e9113e544ab (patch)
treefc006e0850676ef238e14672ac6566b84a9f2dad
parent7c25a42cff108b6bbc068461a32896649f59ae57 (diff)
downloadpacman-offline-de6846447371adc778291ea1361b7e9113e544ab.tar.gz
pacman-offline-de6846447371adc778291ea1361b7e9113e544ab.tar.zst
disabling scheduled pacman offline update...
... in libalpm hook on pacman transaction.
-rw-r--r--Makefile1
-rw-r--r--hook/99-pacman-offline.hook10
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index efb46a1..221346a 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ all: README.html
install:
$(INSTALL) -D -m0755 bin/pacman-offline $(DESTDIR)/usr/bin/pacman-offline
+ $(INSTALL) -D -m0644 hook/99-pacman-offline.hook $(DESTDIR)/usr/share/libalpm/hooks/99-pacman-offline.hook
$(INSTALL) -D -m0644 systemd/pacman-offline.service $(DESTDIR)/usr/lib/systemd/system/pacman-offline.service
$(INSTALL) -D -m0755 systemd/pacman-offline $(DESTDIR)/usr/lib/systemd/scripts/pacman-offline
$(INSTALL) -D -m0644 systemd/pacman-offline-prepare.service $(DESTDIR)/usr/lib/systemd/system/pacman-offline-prepare.service
diff --git a/hook/99-pacman-offline.hook b/hook/99-pacman-offline.hook
new file mode 100644
index 0000000..5a2573d
--- /dev/null
+++ b/hook/99-pacman-offline.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Upgrade
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+Description = Disabling scheduled pacman offline update...
+When = PostTransaction
+Exec = /usr/bin/rm -f /system-update