summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-09 12:05:10 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-09 12:05:10 +0000
commitb6ef87551d67421c576a9212c8c4ec8e9603b995 (patch)
treeacedbfd877f9ace34c82b4edfe4d7ec07d10b713
parentc3642c8459cc303a6b00718b94a4b1e53b8c4c01 (diff)
downloadmgaonline-b6ef87551d67421c576a9212c8c4ec8e9603b995.tar
mgaonline-b6ef87551d67421c576a9212c8c4ec8e9603b995.tar.gz
mgaonline-b6ef87551d67421c576a9212c8c4ec8e9603b995.tar.bz2
mgaonline-b6ef87551d67421c576a9212c8c4ec8e9603b995.tar.xz
mgaonline-b6ef87551d67421c576a9212c8c4ec8e9603b995.zip
when run from the applet, enable to work even if not registered
-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);