From 7db45f883a20af8917b7c282931ae142a25b1b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 25 Oct 2011 16:33:06 +0200 Subject: - do not fail with rpm v5 (Mandriva 2011) --- init_buildsystem | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'init_buildsystem') 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 -- cgit v1.2.3