public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/systemd] rawhide: Update triggers.systemd from v263-rc1
@ 2026-11-29 13:17 Luca Boccassi
  0 siblings, 0 replies; only message in thread
From: Luca Boccassi @ 2026-11-29 13:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/systemd
Branch : rawhide
Commit : 764ab891c9f1f5bb819edd9767fb83f5257cffe5
Author : Luca Boccassi <luca.boccassi@gmail.com>
Date   : 2026-11-28T19:42:42+00:00
Stats  : +22/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/systemd/c/764ab891c9f1f5bb819edd9767fb83f5257cffe5?branch=rawhide

Log:
Update triggers.systemd from v263-rc1

---
diff --git a/triggers.systemd b/triggers.systemd
index 28ddc1f..ab802eb 100644
--- a/triggers.systemd
+++ b/triggers.systemd
@@ -19,6 +19,28 @@
 %transfiletriggerin -P 900899 -- /usr/lib/systemd/user/ /etc/systemd/user/
 /usr/lib/systemd/systemd-update-helper user-reload-restart || :
 
+# %filetriggerpostun runs after a package was removed/upgraded/downgraded, which means it might run with
+# older versions of systemd or without systemd installed anymore at all, so we add checks to make sure the
+# systemd-update-helper binary is still installed and is recent enough.
+
+%filetriggerpostun -P 1000100 -- /usr/lib/systemd/system/ /etc/systemd/system/
+if ! [ -x "/usr/lib/systemd/systemd-update-helper" ]; then
+  exit 0
+fi
+{ read -r -d '' -n 3 shebang || :; } </usr/lib/systemd/systemd-update-helper
+if ! [ "$shebang" = "#!/" ]; then
+  /usr/lib/systemd/systemd-update-helper --stdin --system remove-units || :
+fi
+
+%filetriggerpostun -P 1000099 -- /usr/lib/systemd/user/ /etc/systemd/user/
+if ! [ -x "/usr/lib/systemd/systemd-update-helper" ]; then
+  exit 0
+fi
+{ read -r -d '' -n 3 shebang || :; } </usr/lib/systemd/systemd-update-helper
+if ! [ "$shebang" = "#!/" ]; then
+  /usr/lib/systemd/systemd-update-helper --stdin --global remove-units || :
+fi
+
 %transfiletriggerpostun -P 1000100 -- /usr/lib/systemd/system/ /etc/systemd/system/
 # On removal, we need to run daemon-reload after any units have been
 # removed.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-29 13:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 13:17 [rpms/systemd] rawhide: Update triggers.systemd from v263-rc1 Luca Boccassi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox