summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-01-06 10:53:04 +0000
committerThierry Vignaud <tv@mandriva.org>2009-01-06 10:53:04 +0000
commit82803e958c8b8c79efa7b307dfa64033f585f0e4 (patch)
tree3ef79264a0955f49aa2123aeec0eec6206e48fc9
parentdcdf9d10ca64e421279ef98077735808e0d8d8c6 (diff)
downloadmgaonline-82803e958c8b8c79efa7b307dfa64033f585f0e4.tar
mgaonline-82803e958c8b8c79efa7b307dfa64033f585f0e4.tar.gz
mgaonline-82803e958c8b8c79efa7b307dfa64033f585f0e4.tar.bz2
mgaonline-82803e958c8b8c79efa7b307dfa64033f585f0e4.tar.xz
mgaonline-82803e958c8b8c79efa7b307dfa64033f585f0e4.zip
prevent being aborted on timeout (regression introduced in r250298 on 2008-12-08)
-rwxr-xr-xmdkupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index a807c9ca..9335e9a8 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -94,7 +94,7 @@ clean_dir();
sub update_pkgs {
my (@pkgs) = @_;
eval {
- run_program::run('/usr/sbin/urpmi', '--auto-update', '--auto', '--keep', '--update', map { if_(/(.*)-[^-]*-[^-]*\.[^-.]*?\.rpm$/, $1) } @pkgs);
+ run_program::raw({ timeout => 'never' }, '/usr/sbin/urpmi', '--auto-update', '--auto', '--keep', '--update', map { if_(/(.*)-[^-]*-[^-]*\.[^-.]*?\.rpm$/, $1) } @pkgs);
$? == 0 or die N("Unable to update packages from update_source medium.\n");
};
$@ and output_p($logfile, "[mdkupdate] Error 99: $@"), return 0;