public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Add unit scriptlets for rpmdb-rebuild.service
Date: Mon, 23 Nov 2026 09:35:52 GMT [thread overview]
Message-ID: <179542655250.1.9049271781823238837.rpms-rpm-d2ce8d767717@fedoraproject.org> (raw)
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]*
reply other threads:[~2026-11-23 9:35 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=179542655250.1.9049271781823238837.rpms-rpm-d2ce8d767717@fedoraproject.org \
--to=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