public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Add unit scriptlets for rpmdb-rebuild.service
@ 2026-11-23 9:35
0 siblings, 0 replies; only message in thread
From: @ 2026-11-23 9:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : d2ce8d7677173da9458d939eaf859f649f5f3095
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2025-03-26T14:57:59+01:00
Stats : +9/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/d2ce8d7677173da9458d939eaf859f649f5f3095?branch=pmatilai-v6
Log:
Add unit scriptlets for rpmdb-rebuild.service
We need this so that it if rpm.rpm is installed after systemd.rpm, the unit is still
enabled properly. Noticed in https://bugzilla.redhat.com/show_bug.cgi?id=2262393#c5.
The preset config was added in fedora-release in
https://bugzilla.redhat.com/show_bug.cgi?id=1826658. This here is the standard
counterpart.
https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_scriptlets
We don't want to restart the service if it is running, hence %systemd_postun is
without _with_restart.
---
diff --git a/rpm.spec b/rpm.spec
index 2be06bf..ad451db 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -433,6 +433,15 @@ if [ -d /var/lib/rpm ]; then
done
fi
+%post
+%systemd_post rpmdb-rebuild.service
+
+%preun
+%systemd_preun rpmdb-rebuild.service
+
+%postun
+%systemd_postun rpmdb-rebuild.service
+
%files -f _build/rpm.lang
%license COPYING
%doc CREDITS docs/manual/[a-z]*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 9:35 [rpms/rpm] pmatilai-v6: Add unit scriptlets for rpmdb-rebuild.service
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox