[packages/rpm/rpm.org] - unlock rpmdb in case we're rebuilding db from rpm.org to rpm.org, post transaction scriptlet sho

baggins baggins at pld-linux.org
Sat Jan 9 10:51:32 CET 2021


commit f6db4f31cd92438b38165982af8732e0fb50e7de
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jan 9 10:50:11 2021 +0100

    - unlock rpmdb in case we're rebuilding db from rpm.org to rpm.org, post
      transaction scriptlet should not be under this lock in the first place

 rpm.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/rpm.spec b/rpm.spec
index ffb5a73..3423038 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -26,7 +26,7 @@ Summary(ru.UTF-8):	Менеджер пакетов от RPM
 Summary(uk.UTF-8):	Менеджер пакетів від RPM
 Name:		rpm
 Version:	4.16.1.2
-Release:	0.2
+Release:	0.3
 Epoch:		1
 License:	GPL v2 / LGPL v2.1
 Group:		Base
@@ -770,6 +770,8 @@ if [ -e /var/lib/rpm/Packages ]; then
 	echo
 	%{__rm} -rf /var/lib/rpm/log >/dev/null 2>/dev/null || :
 	%{__rm} -rf /var/lib/rpm/tmp >/dev/null 2>/dev/null || :
+	# Unlock database for rebuild, safe since this is posttrans
+	%{__rm} -rf /var/lib/rpm/.rpm.lock >/dev/null 2>/dev/null || :
 	if ! /usr/bin/rpmdb --rebuilddb; then
 		echo
 		echo "rpm database conversion failed!"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/f6db4f31cd92438b38165982af8732e0fb50e7de



More information about the pld-cvs-commit mailing list