summaryrefslogtreecommitdiff
path: root/init_buildsystem
diff options
context:
space:
mode:
authorAdrian Schröter <adrian@suse.de>2011-10-25 16:33:06 +0200
committerAdrian Schröter <adrian@suse.de>2011-10-25 16:33:06 +0200
commit7db45f883a20af8917b7c282931ae142a25b1b36 (patch)
treef36e675b5109922cd754279780f34888cf3b7f30 /init_buildsystem
parentdb16c8b79524b5be3990a7ddfda77672ca18cb15 (diff)
downloadobs-build-7db45f883a20af8917b7c282931ae142a25b1b36.tar.gz
obs-build-7db45f883a20af8917b7c282931ae142a25b1b36.tar.bz2
obs-build-7db45f883a20af8917b7c282931ae142a25b1b36.zip
- do not fail with rpm v5 (Mandriva 2011)
Diffstat (limited to 'init_buildsystem')
-rwxr-xr-xinit_buildsystem5
1 files changed, 4 insertions, 1 deletions
diff --git a/init_buildsystem b/init_buildsystem
index 5621b40..3efd216 100755
--- a/init_buildsystem
+++ b/init_buildsystem
@@ -217,7 +217,10 @@ init_db()
{
if test $PSUF = rpm ; then
echo initializing rpm db...
- chroot $BUILD_ROOT rpm --initdb || cleanup_and_exit 1
+ if ! test -e $BUILD_ROOT/usr/lib/rpm/cpuinfo.yaml; then
+ # rpm v5 does not have initdb
+ chroot $BUILD_ROOT rpm --initdb || cleanup_and_exit 1
+ fi
# hack: add nofsync to db config to speed up install
mkdir -p $BUILD_ROOT/root
echo '%__dbi_perms perms=0644 nofsync' > $BUILD_ROOT/.rpmmacros