3 if ! /usr/lib/rpm/bin/rpmdb_reset -r lsn /var/lib/rpm/Packages ; then
5 echo "rpm database conversion failed!"
7 echo "You have to run:"
9 echo " /usr/lib/rpm/bin/rpmdb_reset -r lsn /var/lib/rpm/Packages"
10 echo " /bin/rm -f /var/lib/rpm/__db.00*"
11 echo " /bin/rm -f /var/lib/rpm/log/*"
12 echo " /usr/lib/rpm/bin/dbconvert --rebuilddb"
15 /bin/rm --interactive=never -f /var/lib/rpm/__db.00* >/dev/null 2>/dev/null || :
16 /bin/rm --interactive=never -f /var/lib/rpm/log/* >/dev/null 2>/dev/null || :
18 if ! /usr/lib/rpm/bin/dbconvert --rebuilddb; then
20 echo "rpm database conversion failed!"
21 echo "You have to run /usr/lib/rpm/bin/dbconvert manually"