]> git.pld-linux.org Git - packages/rpm.git/blame - dbupgrade.sh
- require coreutils for postrans and don't check for programs that must
[packages/rpm.git] / dbupgrade.sh
CommitLineData
f993b86c
JR
1#!/bin/sh
2
d076ae46 3if ! /usr/lib/rpm/bin/rpmdb_reset -r lsn /var/lib/rpm/Packages ; then
f993b86c
JR
4 echo
5 echo "rpm database conversion failed!"
6 echo
7 echo "You have to run:"
8 echo
f1901814 9 echo " /usr/lib/rpm/bin/rpmdb_reset -r lsn /var/lib/rpm/Packages"
f993b86c
JR
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"
13 echo
d076ae46
JR
14else
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 || :
f993b86c 17
d076ae46
JR
18 if ! /usr/lib/rpm/bin/dbconvert --rebuilddb; then
19 echo
20 echo "rpm database conversion failed!"
21 echo "You have to run /usr/lib/rpm/bin/dbconvert manually"
22 echo
23 fi
f993b86c 24fi
This page took 0.04441 seconds and 4 git commands to generate.