File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -31,5 +31,5 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
32
refs/heads/batch: b5571ed71a5879c0495a982506258d5d267744ed
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
- refs/heads/beta: 590499eb3c886bf7f6b3a732816ea263f1777886
34
+ refs/heads/beta: 13aac00fa26103b2028e9dc203aae8e998b43ca7
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
Original file line number Diff line number Diff line change @@ -497,15 +497,28 @@ download_package() {
497
497
remote_sha256=" ${remote_tarball} .sha256"
498
498
499
499
# Check if we've already downloaded this file.
500
- if [ ! -e " ${local_tarball} " ]; then
500
+ if [ -e " ${local_tarball} .tmp" ]; then
501
+ msg " Resuming ${remote_tarball} to ${local_tarball} "
502
+
503
+ " ${CFG_CURL} " -f -C - -o " ${local_tarball} .tmp" " ${remote_tarball} "
504
+ if [ $? -ne 0 ]
505
+ then
506
+ rm -Rf " ${CFG_TMP_DIR} "
507
+ err " failed to download installer"
508
+ fi
509
+
510
+ mv " ${local_tarball} .tmp" " ${local_tarball} "
511
+ elif [ ! -e " ${local_tarball} " ]; then
501
512
msg " Downloading ${remote_tarball} to ${local_tarball} "
502
513
503
- " ${CFG_CURL} " -f -o " ${local_tarball} " ${remote_tarball} "
514
+ " ${CFG_CURL} " -f -o " ${local_tarball} .tmp " " ${remote_tarball} "
504
515
if [ $? -ne 0 ]
505
516
then
506
517
rm -Rf " ${CFG_TMP_DIR} "
507
518
err " failed to download installer"
508
519
fi
520
+
521
+ mv " ${local_tarball} .tmp" " ${local_tarball} "
509
522
fi
510
523
511
524
verify_hash " ${remote_sha256} " " ${local_tarball} "
You can’t perform that action at this time.
0 commit comments