aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib
diff options
context:
space:
mode:
authorpink-mist <andreas.guldstrand@gmail.com>2019-04-27 11:57:07 +0200
committerGitHub <noreply@github.com>2019-04-27 11:57:07 +0200
commitd5058bdb7f683bbc33cb6a88bdc1b3847385677c (patch)
tree3f938618baee548661b88856a1012af644fc3919 /SBO-Lib/lib
parent7fb54a400f0801222e6d204598b6e3c0f6f713c1 (diff)
parent224e11796b4b2e46f07e96c2645f54c50f58ccbb (diff)
downloadsbotools2-d5058bdb7f683bbc33cb6a88bdc1b3847385677c.tar.xz
Merge pull request #79 from 9m9/master
config wget maximum trying times to 5
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r--SBO-Lib/lib/SBO/Lib/Download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/SBO-Lib/lib/SBO/Lib/Download.pm b/SBO-Lib/lib/SBO/Lib/Download.pm
index d894307..264067a 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;
}
@@ -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};