public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Handle rpmdb-rebuild service enablement for upgrades
Date: Mon, 23 Nov 2026 09:33:19 GMT [thread overview]
Message-ID: <179542639904.1.5349337173317309035.rpms-rpm-13e726e8ebef@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 13e726e8ebefef701025d3a0b7b1ebf685b7e6aa
Author : Panu Matilainen <pmatilai@redhat.com>
Date : 2020-05-04T10:17:42+03:00
Stats : +11/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/13e726e8ebefef701025d3a0b7b1ebf685b7e6aa?branch=pmatilai-v6
Log:
Handle rpmdb-rebuild service enablement for upgrades
Discussed in https://pagure.io/fesco/issue/2382, deemed to not require
any exceptions although this is a bit of an unusual path.
%triggerun as opposed to seemingly more obvious %triggerin is used to
ensure preset files have already been updated without adding new
ordering constraints.
---
diff --git a/rpm.spec b/rpm.spec
index 079ee54..4057ca1 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -25,7 +25,7 @@
%global rpmver 4.15.90
%global snapver git14971
-%global rel 9
+%global rel 10
%global srcver %{rpmver}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:rpm-%(echo %{rpmver} | cut -d'.' -f1-2).x}
@@ -452,6 +452,13 @@ make check || (cat tests/rpmtests.log; exit 1)
%dir %{rpmhome}/fileattrs
+%dnl Handle rpmdb rebuild service on erasure of old to avoid ordering issues
+%dnl https://pagure.io/fesco/issue/2382
+%triggerun -- rpm < 4.15.90-0.git14971.10
+if [ -x /usr/bin/systemctl ]; then
+ systemctl --no-reload preset rpmdb-rebuild ||:
+fi
+
%files libs
%{_libdir}/librpmio.so.*
%{_libdir}/librpm.so.*
@@ -534,6 +541,9 @@ make check || (cat tests/rpmtests.log; exit 1)
%doc doc/librpm/html/*
%changelog
+* Mon May 4 2020 Panu Matilainen <pmatilai@redhat.com> - 4.15.90-0.git14971.10
+- Handle rpmdb-rebuild service enablement for upgrades
+
* Thu Apr 23 2020 Panu Matilainen <pmatilai@redhat.com> - 4.15.90-0.git14971.9
- Fix questionable uses of %%{name} and %%{version} in the spec
reply other threads:[~2026-11-23 9:33 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=179542639904.1.5349337173317309035.rpms-rpm-13e726e8ebef@fedoraproject.org \
--to=pmatilai@redhat.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