diff options
author | Adrian Schröter <adrian@suse.de> | 2011-10-25 16:33:06 +0200 |
---|---|---|
committer | Adrian Schröter <adrian@suse.de> | 2011-10-25 16:33:06 +0200 |
commit | 7db45f883a20af8917b7c282931ae142a25b1b36 (patch) | |
tree | f36e675b5109922cd754279780f34888cf3b7f30 /init_buildsystem | |
parent | db16c8b79524b5be3990a7ddfda77672ca18cb15 (diff) | |
download | obs-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-x | init_buildsystem | 5 |
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 |