]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Do not mark maps as done when fetching their pk3 failed.
authorRudolf Polzer <divVerent@gmail.com>
Fri, 4 Feb 2022 02:28:43 +0000 (03:28 +0100)
committerRudolf Polzer <divVerent@gmail.com>
Fri, 4 Feb 2022 02:28:43 +0000 (03:28 +0100)
May fix "missing screenshots" issue.

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
 }