Skip to content

Commit f03a2ca

Browse files
committed
Re-try Minisat download (up to two times) in case it fails
Running in CI we do see transient network access errors from time to time, which should not result in task failures (as long as they are genuinely transient).
1 parent 49230ec commit f03a2ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@ TAR = tar
8989

9090
minisat2-download:
9191
@echo "Downloading Minisat 2.2.1"
92-
@$(DOWNLOADER) http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz
92+
@for i in `seq 1 3` ; do \
93+
$(DOWNLOADER) \
94+
http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz && \
95+
exit 0 ; \
96+
sleep 10 ; \
97+
done ; exit 1
9398
@$(TAR) xfz minisat2_2.2.1.orig.tar.gz
9499
@rm -Rf ../minisat-2.2.1
95100
@mv minisat2-2.2.1 ../minisat-2.2.1

0 commit comments

Comments
 (0)