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