From 1169cae6f51be711d24d95bfe323a909bab66bd1 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 4 Feb 2022 03:28:43 +0100 Subject: [PATCH] Do not mark maps as done when fetching their pk3 failed. May fix "missing screenshots" issue. --- misc/tools/xonotic-map-compiler-autobuild | 2 ++ 1 file changed, 2 insertions(+) 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 } -- 2.39.2