diff options
author | 9m9 <iamjam__x@sina.com> | 2018-12-22 21:16:52 +0800 |
---|---|---|
committer | 9m9 <iamjam__x@sina.com> | 2018-12-22 21:16:52 +0800 |
commit | 195d583529669b1867ab7aa2d1f8d73bbb93236f (patch) | |
tree | 1bdd8a42a27d5fea30e9141d49b4647f3c2f11f6 | |
parent | 47969cdee3490d3315013058534f1d1f065a312c (diff) | |
download | sbotools-195d583529669b1867ab7aa2d1f8d73bbb93236f.tar.xz |
config wget maximum trying times to 5
-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 d894307..5440966 100644 --- a/SBO-Lib/lib/SBO/Lib/Download.pm +++ b/SBO-Lib/lib/SBO/Lib/Download.pm @@ -161,7 +161,7 @@ sub get_distfile { # if wget $link && verify, return # else wget sbosrcarch && verify - if (system('wget', '--no-check-certificate', $link) != 0) { + if (system('wget', '--no-check-certificate', '--tries=5', $link) != 0) { $fail->{msg} = "Unable to wget $link.\n"; $fail->{err} = _ERR_DOWNLOAD; } |