summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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});