Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 3f1cdf060005a3fa12baca329c151a1b > scriptlet

rpm-4.8.1-7.fc14.i686.rpm

POSTTRANS

/bin/sh
# XXX this is klunky and ugly, rpm itself should handle this
dbstat=/usr/lib/rpm/rpmdb_stat
if [ -x "$dbstat" ]; then
    if "$dbstat" -e -h /var/lib/rpm 2>&1 | grep -q "doesn't match environment version \| Invalid argument"; then
        rm -f /var/lib/rpm/__db.* 
    fi
fi
exit 0