summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-26 16:48:41 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-26 16:48:41 +0000
commita381fd0dcc0b1b11ddbca47f236bb50477d564a1 (patch)
tree967f506da10791bf55386fedcce52442c3e170e3 /mdkonline.pm
parent4f57f188a0b2567175aa43ab29e579c2fa298309 (diff)
downloadmgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.tar
mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.tar.gz
mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.tar.bz2
mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.tar.xz
mgaonline-a381fd0dcc0b1b11ddbca47f236bb50477d564a1.zip
(is_it_2008_0) share it
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm5
1 files changed, 5 insertions, 0 deletions
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');
}