]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- unlock rpmdb in case we're rebuilding db from rpm.org to rpm.org, post
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Jan 2021 09:50:11 +0000 (10:50 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Jan 2021 09:50:11 +0000 (10:50 +0100)
  transaction scriptlet should not be under this lock in the first place

rpm.spec

index ffb5a731765c1e632a992a36483f4895f2dfec41..3423038f341f66cb508f5aacd43a6d9a1f72170f 100644 (file)
--- 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!"
This page took 0.032568 seconds and 4 git commands to generate.