From 224e11796b4b2e46f07e96c2645f54c50f58ccbb Mon Sep 17 00:00:00 2001 From: 9m9 <9m9@gmx.us> Date: Sun, 23 Dec 2018 12:09:03 +0800 Subject: add tries option when wget from slackware.uk --- SBO-Lib/lib/SBO/Lib/Download.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SBO-Lib/lib') diff --git a/SBO-Lib/lib/SBO/Lib/Download.pm b/SBO-Lib/lib/SBO/Lib/Download.pm index 5440966..264067a 100644 --- a/SBO-Lib/lib/SBO/Lib/Download.pm +++ b/SBO-Lib/lib/SBO/Lib/Download.pm @@ -179,7 +179,7 @@ sub get_distfile { substr($info_md5, 0, 1), substr($info_md5, 1, 1), $info_md5, _get_fname($link)); return 1 if - system('wget', '--no-check-certificate', $sbosrcarch) == 0 and + system('wget', '--no-check-certificate', '--tries=5', $sbosrcarch) == 0 and verify_distfile(@_); return $fail->{msg}, $fail->{err}; -- cgit v1.2.3