summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2008-08-19 14:27:23 -0400
committerJesse Keating <jkeating@redhat.com>2008-08-19 14:27:23 -0400
commit2e2b582f174438e50b5371e745473eb8d8158921 (patch)
treea1895b3bed526c4991a82770f3725579b8e48e7a /scripts
parentbe4e55d789be7840bbaf53fb4e57b021b42461e5 (diff)
downloadreleng-2e2b582f174438e50b5371e745473eb8d8158921.tar.gz
releng-2e2b582f174438e50b5371e745473eb8d8158921.tar.xz
releng-2e2b582f174438e50b5371e745473eb8d8158921.zip
Clean out rpmdb caches to avoid db mismatches in the chroot
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buildrawhide2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/buildrawhide b/scripts/buildrawhide
index 8033ff9..3038d4b 100755
--- a/scripts/buildrawhide
+++ b/scripts/buildrawhide
@@ -32,6 +32,8 @@ mock -r $MOCKCONFIG --chroot "mash -o /mnt/koji/mash/rawhide-$DATE --compsfile /
if [ -n "\$OLD" ]
then
+ # clean out the rpmdb cache first to save a mismatch error
+ mock -r $MOCKCONFIG --chroot "rm -f /var/lib/rpm/__db*"
mock -r $MOCKCONFIG --chroot "/usr/bin/repodiff -q --new=file:///mnt/koji/mash/rawhide-$DATE/development/source/SRPMS --old=file://\$OLD/development/source/SRPMS > /mnt/koji/mash/rawhide-$DATE/logs/repodiff"
fi