diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-09 11:38:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-09 11:38:34 +0000 |
commit | 8acbb601dddbf59e21f03893688084ad8e64968e (patch) | |
tree | 2198568331e3f68ae05a9668ee59debb711a3ac9 | |
parent | e17430da148f6d62afa65d385d738f7b16cf1c35 (diff) | |
download | mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.tar mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.tar.gz mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.tar.bz2 mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.tar.xz mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.zip |
log running MandrivaUpdate
-rwxr-xr-x | mdkupdate | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -31,6 +31,7 @@ use standalone; # for explanations use common; use interactive; use URI::Escape; +use run_program; use mdkonline; use urpm; @@ -112,8 +113,8 @@ if (!$bundle) { my ($release) = mdkonline::get_release(); if ($applet) { my $rpm_exec_name = $release >= 2006.0 ? "/usr/bin/MandrivaUpdate" : "/usr/bin/MandrakeUpdate"; - my $is_no_media_update = $release <= 10.1 ? '' : "--no-media-update"; - system $rpm_exec_name, "--no-confirmation", $is_no_media_update; + my $is_no_media_update = $release <= 10.1 ? () : "--no-media-update"; + run_program::run($rpm_exec_name, "--no-confirmation", $is_no_media_update); } $getupdates = mdkonline::soap_get_updates_for_host($wc->{HOST_ID}, $wc->{HOST_KEY}); |