summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-01-19 01:18:38 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-01-19 01:18:38 +0100
commitb17061da2eaa00a37a25957ad35c86f485c694e5 (patch)
tree778004dde769988580bac675e9dd02c896e88c7b /perl-install/install
parent34628487c01e00194923fd2f229be58ae2657be4 (diff)
downloaddrakx-b17061da2eaa00a37a25957ad35c86f485c694e5.tar
drakx-b17061da2eaa00a37a25957ad35c86f485c694e5.tar.gz
drakx-b17061da2eaa00a37a25957ad35c86f485c694e5.tar.bz2
drakx-b17061da2eaa00a37a25957ad35c86f485c694e5.tar.xz
drakx-b17061da2eaa00a37a25957ad35c86f485c694e5.zip
Retry downloading packages in case of error (mga#28539)
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/NEWS3
-rw-r--r--perl-install/install/pkgs.pm1
2 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index e98557b67..dae03054d 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,6 @@
+- package installation:
+ o retry downloading packages in case of error (mga#28539)
+
Version 18.48 - 17 January 2022
- Enable to alter default downloader (mga#28539)
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index 0dbd38751..b095d8d41 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -420,6 +420,7 @@ sub empty_packages {
urpm::set_tune_rpm($packages, $::o->{'tune-rpm'}) if $::o->{'tune-rpm'};
$::force = 1;
$packages->{options}{ignoresize} = 1;
+ $packages->{options}{retry} = 3;
$packages->{options}{downloader} = $::o->{options}{downloader};
# prevent priority upgrade (redundant for now as $urpm->{root} implies disabling it:
$packages->{options}{'priority-upgrade'} = undef;