Skip to content

Commit 9c56d98

Browse files
illwieckzslipher
authored andcommitted
external_deps: add --require-theirs option to test external urls to detect url breakage
1 parent aaa38f2 commit 9c56d98

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

external_deps/build.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ download_extract() {
148148
local our_mirror="https://dl.unvanquished.net/deps/original/${1}"
149149
local tarball_file="${DOWNLOAD_DIR}/${1}"; shift
150150

151-
if "${prefer_ours}"
151+
if "${require_theirs}"
152+
then
153+
download "${tarball_file}" "${@}"
154+
elif "${prefer_ours}"
152155
then
153156
download "${tarball_file}" "${our_mirror}" "${@}"
154157
else
@@ -1190,6 +1193,7 @@ errorHelp() {
11901193

11911194
download_only='false'
11921195
prefer_ours='false'
1196+
require_theirs='false'
11931197
while [ -n "${1:-}" ]
11941198
do
11951199
case "${1-}" in
@@ -1201,6 +1205,10 @@ do
12011205
prefer_ours='true'
12021206
shift
12031207
;;
1208+
'--require-theirs')
1209+
require_theirs='true'
1210+
shift
1211+
;;
12041212
'--'*)
12051213
helpError
12061214
;;

0 commit comments

Comments
 (0)