summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2020-11-14 20:39:58 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2020-11-14 20:39:58 +0000
commit8ceeb6e06e4fd26f038dcf314d1bccead4132797 (patch)
tree93f6ff833bd945bdaab194c3f1a106c201370c27
parent64799d2e266fa5f1077600cf8a88fb605b509cce (diff)
downloaddrakx-8ceeb6e06e4fd26f038dcf314d1bccead4132797.tar
drakx-8ceeb6e06e4fd26f038dcf314d1bccead4132797.tar.gz
drakx-8ceeb6e06e4fd26f038dcf314d1bccead4132797.tar.bz2
drakx-8ceeb6e06e4fd26f038dcf314d1bccead4132797.tar.xz
drakx-8ceeb6e06e4fd26f038dcf314d1bccead4132797.zip
Disable timeout when removing unused packages.
It can cause irrepairable damage to the rpm database (mga#27580).
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/pkgs.pm3
2 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 4315795f5..51b1f8e34 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- remove-unused-packages:
+ o disable timeout - it can corrupt the rpm database (mga#27580)
- drakhardware:
o fix hardware support package detection (mga#27122)
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 892f758da..5faace128 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -292,7 +292,8 @@ sub remove_unused_packages {
#- we should have some gurpme
$wait = $in->wait_message(N("Please wait"), N("Removing packages..."));
- run_program::rooted($o_prefix, 'urpme', '--auto',
+ #- disable timeout, it can cause irrepairable damage to the rpm database (mga#27580)
+ run_program::raw({ root => $o_prefix, timeout => 'never' }, 'urpme', '--auto',
if_($hardware, @unused_hardware_packages),
if_($locales, @unselected_locales),
);