- take care about install order during preinstall and vminstall step
authorAdrian Schröter <adrian@suse.de>
Wed, 30 May 2012 11:25:07 +0000 (13:25 +0200)
committerAdrian Schröter <adrian@suse.de>
Wed, 30 May 2012 11:25:07 +0000 (13:25 +0200)
init_buildsystem

index 0bccd20..b2edf07 100755 (executable)
@@ -768,12 +768,14 @@ if test ! -f $BUILD_ROOT/var/lib/rpm/packages.rpm -a ! -f $BUILD_ROOT/var/lib/rp
     for PKG in $PACKAGES_TO_RUNSCRIPTS ; do
        : > $BUILD_ROOT/.init_b_cache/scripts/$PKG.run
     done
+    PACKAGES_TO_PREINSTALL=`reorder $PACKAGES_TO_PREINSTALL`
     progress_setup PACKAGES_TO_PREINSTALL
     for PKG in $PACKAGES_TO_PREINSTALL ; do
        progress_step PACKAGES_TO_PREINSTALL
        preinstall ${PKG##*/}
     done
     if test -n "$PREPARE_VM" ; then
+       PACKAGES_TO_VMINSTALL=`reorder $PACKAGES_TO_VMINSTALL`
        progress_setup PACKAGES_TO_VMINSTALL
        for PKG in $PACKAGES_TO_VMINSTALL ; do
            progress_step PACKAGES_TO_VMINSTALL