summaryrefslogtreecommitdiffstats
path: root/perl-install/install/pkgs.pm
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/pkgs.pm
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/pkgs.pm')
-rw-r--r--perl-install/install/pkgs.pm1
1 files changed, 1 insertions, 0 deletions
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;