From de6846447371adc778291ea1361b7e9113e544ab Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 4 Sep 2019 23:15:54 +0200 Subject: disabling scheduled pacman offline update... ... in libalpm hook on pacman transaction. --- Makefile | 1 + hook/99-pacman-offline.hook | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 hook/99-pacman-offline.hook 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 -- cgit v1.2.3-70-g09d2