simpler bootstrap : take the whole build
[build.git] / vbuild-fedora-mirror.sh
index 1c9bd6c..76aff71 100755 (executable)
@@ -56,6 +56,7 @@ case $findex in
        echo "============================== $findex extras"
        mkdir -p ${root}/extras/$findex/$arch/
        rsync $dry_run -avz --delete --exclude debug/ ${rsyncurl}/extras/$findex/$arch/ ${root}/extras/$findex/$arch/
+       RES=0
        ;;
     7)
        echo "============================== $findex core"
@@ -64,6 +65,7 @@ case $findex in
        echo "============================== $findex updates"
        mkdir -p ${root}/core/updates/$findex/$arch/
        rsync $dry_run -avz --delete --exclude debug/ ${rsyncurl}/core/updates/$findex/$arch/ ${root}/core/updates/$findex/$arch/
+       RES=0
        ;;
     8)
     # somehow the layout on my favorite mirror is different in 7 and 8, /Everything/ has gone 
@@ -73,9 +75,12 @@ case $findex in
        echo "============================== $findex updates"
        mkdir -p ${root}/core/updates/$findex/$arch/
        rsync $dry_run -avz --delete --exclude debug/ ${rsyncurl}/core/updates/$findex/$arch/ ${root}/core/updates/$findex/$arch/
+       RES=0
        ;;
     *)
        echo "Unknown fedora index $findex - exiting"
-       exit 1
+       RES=1
        ;;
 esac
+
+exit $RES