From: Rudolf Polzer Date: Fri, 4 Feb 2022 02:28:43 +0000 (+0100) Subject: Do not mark maps as done when fetching their pk3 failed. X-Git-Tag: xonotic-v0.8.5~31 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=1169cae6f51be711d24d95bfe323a909bab66bd1;p=xonotic%2Fxonotic.git Do not mark maps as done when fetching their pk3 failed. May fix "missing screenshots" issue. --- diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index 13e9faa9..41ef0c30 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -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 }