public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Create rpmdb directory symlink in posttrans by default (#2066427)
@ 2026-11-23  9:34 Neal Gompa
  0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-11-23  9:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 391c3aeb66e8c2a0ac684580ac82c41d7da2128b
Author : Neal Gompa <ngompa@fedoraproject.org>
Date   : 2022-03-21T18:42:53-04:00
Stats  : +8/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/391c3aeb66e8c2a0ac684580ac82c41d7da2128b?branch=pmatilai-v6

Log:
Create rpmdb directory symlink in posttrans by default (#2066427)

---
diff --git a/rpm.spec b/rpm.spec
index a356c5a..9f9c543 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -30,7 +30,7 @@
 
 %global rpmver 4.17.0
 #global snapver rc1
-%global baserelease 9
+%global baserelease 10
 %global sover 9
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
@@ -449,6 +449,10 @@ fi
 if [ -d /var/lib/rpm ]; then
     touch /var/lib/rpm/.migratedb
 fi
+if [ ! -d /var/lib/rpm ] && [ -d /usr/lib/sysimage/rpm ] && [ ! -f /usr/lib/sysimage/rpm/.rpmdbdirsymlink_created ]; then
+    ln -sfr /var/lib/rpm /usr/lib/sysimage/rpm
+    touch /usr/lib/sysimage/rpm/.rpmdbdirsymlink_created
+fi
 
 %files -f rpm.lang
 %license COPYING
@@ -605,6 +609,9 @@ fi
 %doc docs/librpm/html/*
 
 %changelog
+* Mon Mar 21 2022 Neal Gompa <ngompa@fedoraproject.org> - 4.17.0-10
+- Create rpmdb directory symlink in posttrans by default (#2066427)
+
 * Wed Feb 16 2022 Neal Gompa <ngompa@fedoraproject.org> - 4.17.0-9
 - Add dependencies for the rpmdb migration scriptlet (#2055033)
 

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

only message in thread, other threads:[~2026-11-23  9:34 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:34 [rpms/rpm] pmatilai-v6: Create rpmdb directory symlink in posttrans by default (#2066427) Neal Gompa

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