diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-09 12:05:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-09 12:05:10 +0000 |
commit | b6ef87551d67421c576a9212c8c4ec8e9603b995 (patch) | |
tree | acedbfd877f9ace34c82b4edfe4d7ec07d10b713 | |
parent | c3642c8459cc303a6b00718b94a4b1e53b8c4c01 (diff) | |
download | mgaonline-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-x | mdkupdate | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |