]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Don't fail if cowbase already exists.
authorMichael Hanke <michael.hanke@gmail.com>
Thu, 3 Sep 2009 15:38:55 +0000 (11:38 -0400)
committerMichael Hanke <michael.hanke@gmail.com>
Thu, 3 Sep 2009 15:38:55 +0000 (11:38 -0400)
tools/nd_adddist

index 9699dd89c5eaf296ce8f534e50ae45b8d53a969b..d6b719e27f5b8b749b548eb1d199ca2614f1baec 100755 (executable)
@@ -8,6 +8,10 @@ opts="--distribution $dist --debootstrap debootstrap --aptcache $aptcache"
 
 for a in i386 amd64; do
   echo "Building $a base path..."
+  if [ -d /home/cowbuilder/cow/${family}-${dist}-${a}.cow ]; then
+    echo "/home/cowbuilder/cow/${family}-${dist}-${a}.cow exists. Ignoring arch."
+    continue
+  fi
   if [ "${family:0:3}" = "nd+" ]; then
   echo "Including NeuroDebian repository..."
     cowbuilder --create --basepath /home/cowbuilder/cow/${family}-${dist}-${a}.cow $opts \