public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Luca Boccassi <luca.boccassi@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/systemd] rawhide: Update triggers.systemd from v263-rc1
Date: Sun, 29 Nov 2026 13:17:49 GMT [thread overview]
Message-ID: <179595826920.1.13819624027395385916.rpms-systemd-764ab891c9f1@fedoraproject.org> (raw)
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.
reply other threads:[~2026-11-29 13:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179595826920.1.13819624027395385916.rpms-systemd-764ab891c9f1@fedoraproject.org \
--to=luca.boccassi@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox