- rpm lock is a file, no need for -r
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 12 Jan 2021 07:38:34 +0000 (08:38 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 12 Jan 2021 07:38:34 +0000 (08:38 +0100)
rpm.spec

index 3423038f341f66cb508f5aacd43a6d9a1f72170f..b3bb33e5f4328d740f307682a3d6dd1a1c0186bd 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -771,7 +771,7 @@ if [ -e /var/lib/rpm/Packages ]; then
        %{__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 || :
+       %{__rm} -f /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.125182 seconds and 4 git commands to generate.