summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-09 11:38:34 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-09 11:38:34 +0000
commit8acbb601dddbf59e21f03893688084ad8e64968e (patch)
tree2198568331e3f68ae05a9668ee59debb711a3ac9 /mdkupdate
parente17430da148f6d62afa65d385d738f7b16cf1c35 (diff)
downloadmgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.tar
mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.tar.gz
mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.tar.bz2
mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.tar.xz
mgaonline-8acbb601dddbf59e21f03893688084ad8e64968e.zip
log running MandrivaUpdate
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index 3b00c29f..7375c4c8 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -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});