Explorar el Código

Ports: Don't add ports to the "built" list unless successful

Tim Schumacher hace 3 años
padre
commit
b220b45c5e
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      Ports/build_all.sh

+ 6 - 1
Ports/build_all.sh

@@ -49,7 +49,6 @@ for file in *; do
                 popd > /dev/null
                 popd > /dev/null
                 continue
                 continue
             fi
             fi
-            built_ports="$built_ports $port $(./package.sh showproperty depends) "
 
 
             if [ "$clean" == true ]; then
             if [ "$clean" == true ]; then
                 if [ "$verbose" == true ]; then
                 if [ "$verbose" == true ]; then
@@ -64,6 +63,8 @@ for file in *; do
                 else
                 else
                     echo "ERROR: Build of ${port} was not successful!"
                     echo "ERROR: Build of ${port} was not successful!"
                     some_failed=true
                     some_failed=true
+                    popd > /dev/null
+                    continue
                 fi
                 fi
             else
             else
                 if ./package.sh > /dev/null 2>&1; then
                 if ./package.sh > /dev/null 2>&1; then
@@ -71,8 +72,12 @@ for file in *; do
                 else
                 else
                     echo "ERROR: Build of ${port} was not successful!"
                     echo "ERROR: Build of ${port} was not successful!"
                     some_failed=true
                     some_failed=true
+                    popd > /dev/null
+                    continue
                 fi
                 fi
             fi
             fi
+
+            built_ports="$built_ports $port $(./package.sh showproperty depends) "
         popd > /dev/null
         popd > /dev/null
     fi
     fi
 done
 done