Author: richter Date: Mon Jan 24 10:45:42 2011 New Revision: 2414 Log: fix indentation Modified: trunk/tools/testbed/scripts/build_deb Modified: trunk/tools/testbed/scripts/build_deb ============================================================================== --- trunk/tools/testbed/scripts/build_deb Thu Jan 20 15:20:13 2011 (r2413) +++ trunk/tools/testbed/scripts/build_deb Mon Jan 24 10:45:42 2011 (r2414) @@ -76,13 +76,15 @@ DISTRIBUTION="maverick" COW_PATH=$PBUILDER_PATH/"$DISTRIBUTION-${ARCH}.cow" - # create chroot environment if neccessary - [ -d $COW_PATH ] || cowbuilder --create --architecture $ARCH \ - --distribution $DISTRIBUTION --basepath $COW_PATH \ - --othermirror "deb http://archive.ubuntu.com/ubuntu maverick main restricted universe multiverse" + # create or update chroot environment + if [ -d $COW_PATH ]; then + cowbuilder --update --architecture $ARCH --basepath $COW_PATH + else + cowbuilder --create --architecture $ARCH \ + --distribution $DISTRIBUTION --basepath $COW_PATH \ + --othermirror "deb http://archive.ubuntu.com/ubuntu maverick main restricted universe multiverse" + fi - # update chroot - cowbuilder --update --architecture $ARCH --basepath $COW_PATH # build packages if [ $SIG_KEY ]; then -- This is the pisa developer mailing list. Please also subscribe to the main pisa list at: //www.freelists.org/list/pisa