diff options
author | 9m9 <9m9@gmx.us> | 2018-12-23 12:09:03 +0800 |
---|---|---|
committer | 9m9 <9m9@gmx.us> | 2018-12-23 12:09:03 +0800 |
commit | 224e11796b4b2e46f07e96c2645f54c50f58ccbb (patch) | |
tree | 0f4bc4aa73e7c7f73269b0c1626c9a51d9f405a6 /SBO-Lib/lib/SBO/Lib/Download.pm | |
parent | 195d583529669b1867ab7aa2d1f8d73bbb93236f (diff) | |
download | sbotools-224e11796b4b2e46f07e96c2645f54c50f58ccbb.tar.xz |
add tries option when wget from slackware.uk
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib/Download.pm')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib/Download.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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}; |