File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,13 @@ TAR = tar
89
89
90
90
minisat2-download :
91
91
@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
+ $(RM ) minisat2_2.2.1.orig.tar.gz ; \
97
+ if [ $$ i -lt 3 ] ; then echo " Re-trying in 10 seconds" 1>&2 ; sleep 10 ; fi ; \
98
+ done ; exit 1
93
99
@$(TAR ) xfz minisat2_2.2.1.orig.tar.gz
94
100
@rm -Rf ../minisat-2.2.1
95
101
@mv minisat2-2.2.1 ../minisat-2.2.1
Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ include("${CBMC_SOURCE_DIR}/../cmake/DownloadProject.cmake")
60
60
if ("${sat_impl} " STREQUAL "minisat2" )
61
61
message (STATUS "Building solvers with minisat2" )
62
62
63
+ # once we upgrade to CMake 3.7 or higher we can specify multiple URLs as a
64
+ # fall-back in case the first URL fails (the Makefile-based build retries up
65
+ # to 2 times)
63
66
download_project(PROJ minisat2
64
67
URL http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz
65
68
PATCH_COMMAND patch -p1 -i ${CBMC_SOURCE_DIR} /../scripts/minisat-2.2.1-patch
You can’t perform that action at this time.
0 commit comments