]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
Do not mark maps as done when fetching their pk3 failed.
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 13e9faa95329caeb608e488425d929d4a29e3401..41ef0c30dc63c562eced6b02401f978ba80f9023 100755 (executable)
@@ -311,12 +311,14 @@ getthemap()
                if ! curl -Lo "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
                        rm -f "$bspdir/$M-$blobhash.pk3"
                        echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
+                       getthemap_fail=true
                        return 0
                fi
        fi
        if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then
                rm -f "$bspdir/$M-$blobhash.pk3"
                echo "WARNING: could not download $url$M-$blobhash.pk3, invalid zip file"
+               getthemap_fail=true
                return 0
        fi
 }