Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > ce8fac6c21752fd3f00b82e041f45cd2 > scriptlet

rpm-4.8.1-5.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