diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-01-06 10:53:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-01-06 10:53:04 +0000 |
commit | 82803e958c8b8c79efa7b307dfa64033f585f0e4 (patch) | |
tree | 3ef79264a0955f49aa2123aeec0eec6206e48fc9 /mdkupdate | |
parent | dcdf9d10ca64e421279ef98077735808e0d8d8c6 (diff) | |
download | mgaonline-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)
Diffstat (limited to 'mdkupdate')
-rwxr-xr-x | mdkupdate | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |