From c41a61a5b85f93afbff07b989703b8fff66b2bb0 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Wed, 30 Dec 2020 17:07:41 +0000 Subject: Disable timeout when installing updates (mga#27981) The default 10 minute timeout is not enough when there are many updates. If the user has a slow internet connection it could take much longer. gurpmi should timeout itself if individual transactions hang. --- perl-install/install/NEWS | 3 +++ perl-install/install/steps_interactive.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 5b5bedbfe..0dcad7bd3 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,6 @@ +- disable timeout when installing updates (mga#27981) + o this can take a long time when there are many updates + Version 18.38 - 29 December 2020 - bootloader: diff --git a/perl-install/install/steps_interactive.pm b/perl-install/install/steps_interactive.pm index 52b8b786d..a6f21b2d3 100644 --- a/perl-install/install/steps_interactive.pm +++ b/perl-install/install/steps_interactive.pm @@ -787,7 +787,7 @@ Do you want to install the updates?")), my $binary = find { whereis_binary($_, $::prefix) } if_(check_for_xserver(), 'gurpmi2'), 'urpmi' or return; my $log_file = '/root/drakx/updates.log'; - run_program::rooted($::prefix, $binary, '>>', $log_file, '2>>', $log_file, '--auto-select'); + run_program::raw({ root => $::prefix, timeout => 'never' }, $binary, '>>', $log_file, '2>>', $log_file, '--auto-select'); install::pkgs::clean_rpmdb_shared_regions(); -- cgit v1.2.1