summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmdkupdate5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index 7375c4c8..f423433f 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -108,14 +108,15 @@ my $wc = mdkonline::read_conf();
-e $logfile and system "/bin/rm", $logfile;
if (!$bundle) {
- if ($wc->{HOST_ID} && $wc->{HOST_KEY}) {
- my $getupdates;
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";
run_program::run($rpm_exec_name, "--no-confirmation", $is_no_media_update);
+ exit(0);
}
+ if ($wc->{HOST_ID} && $wc->{HOST_KEY}) {
+ my $getupdates;
$getupdates = mdkonline::soap_get_updates_for_host($wc->{HOST_ID}, $wc->{HOST_KEY});
my $ret = mdkonline::check_server_response($getupdates);