be on the safe side, do skip createrepo only if DO_INIT is false
authorAdrian Schröter <adrian@suse.de>
Fri, 29 Jan 2010 10:18:11 +0000 (11:18 +0100)
committerAdrian Schröter <adrian@suse.de>
Fri, 29 Jan 2010 10:18:11 +0000 (11:18 +0100)
build_kiwi.sh

index 4eaf556..85fc5e9 100644 (file)
@@ -5,7 +5,7 @@ run_kiwi()
     imagename=$(perl -I$BUILD_DIR -MBuild::Kiwi -e Build::Kiwi::show $BUILD_ROOT/$TOPDIR/SOURCES/$SPECFILE filename)
     imageversion=$(perl -I$BUILD_DIR -MBuild::Kiwi -e Build::Kiwi::show $BUILD_ROOT/$TOPDIR/SOURCES/$SPECFILE version)
     # prepare rpms as source and createrepo on the repositories
-    if test -d $BUILD_ROOT/$TOPDIR/SOURCES/repos -a "$DO_INIT" = true ; then
+    if test -d $BUILD_ROOT/$TOPDIR/SOURCES/repos -a "$DO_INIT" != false ; then
        (
        ln -sf $TOPDIR/SOURCES/repos $BUILD_ROOT/repos
        cd $BUILD_ROOT/$TOPDIR/SOURCES/repos