]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- remove /var/lib/rpm/log directory on upgrade, rpm4 does not use it and it's existen...
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 13 Oct 2020 06:36:05 +0000 (08:36 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 13 Oct 2020 06:36:05 +0000 (08:36 +0200)
dbupgrade.sh

index 30c2d5c902beeb76165b12f55164c14fe855e4c1..0011a7cbf32cb1a275a31a9c2e6b44fe4d0a2407 100755 (executable)
@@ -20,12 +20,12 @@ if ! /usr/lib/rpm/rpmdb_reset -r lsn "$ROOTDIR"/var/lib/rpm/Packages ; then
        echo
        echo "  /usr/lib/rpm/rpmdb_reset -r lsn /var/lib/rpm/Packages"
        echo "  /bin/rm -f /var/lib/rpm/__db.00*"
-       echo "  /bin/rm -f /var/lib/rpm/log/*"
+       echo "  /bin/rm -rf /var/lib/rpm/log"
        echo "  /usr/bin/rpmdb --rebuilddb"
        echo
 else
        /bin/rm --interactive=never -f "$ROOTDIR"/var/lib/rpm/__db.00* >/dev/null 2>/dev/null || :
-       /bin/rm --interactive=never -f "$ROOTDIR"/var/lib/rpm/log/* >/dev/null 2>/dev/null || :
+       /bin/rm --interactive=never -rf "$ROOTDIR"/var/lib/rpm/log >/dev/null 2>/dev/null || :
 
        if ! /usr/bin/rpmdb --rebuilddb ${ROOTDIR:+--root="$ROOTDIR"}; then
                echo
This page took 0.081686 seconds and 4 git commands to generate.