diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-26 16:48:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-26 16:48:41 +0000 |
commit | a381fd0dcc0b1b11ddbca47f236bb50477d564a1 (patch) | |
tree | 967f506da10791bf55386fedcce52442c3e170e3 | |
parent | 4f57f188a0b2567175aa43ab29e579c2fa298309 (diff) | |
download | mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.tar mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.tar.gz mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.tar.bz2 mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.tar.xz mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.zip |
(is_it_2008_0) share it
-rwxr-xr-x | mdkapplet | 4 | ||||
-rw-r--r-- | mdkonline.pm | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -740,10 +740,6 @@ sub setLastTime() { setVar('LASTCHECK', $date); } -sub is_it_2008_0() { - $product_id->{version} eq '2008.0'; -} - sub has_network_connection_2008() { require network::network; require network::tools; diff --git a/mdkonline.pm b/mdkonline.pm index c9667554..564a4e8e 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -39,6 +39,7 @@ our @EXPORT = qw(find_current_distro get_product_id get_release get_stale_upgrade_filename + is_it_2008_0 is_enterprise_media_supported is_restricted_media_supported translate_product @@ -68,6 +69,10 @@ sub get_release() { ($r); } +sub is_it_2008_0() { + $product_id->{version} eq '2008.0'; +} + sub is_enterprise_media_supported() { to_bool($product_id->{type} eq 'Enterprise' && $product_id->{product} eq 'Server'); } |