summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:31 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:31 +0000
commit5ef344820697f8a6e07359bf9b29b969c7ce37b0 (patch)
tree834ffbed760287a4e45efbe0bae6c86a00715baf /mdkonline.pm
parent4a5d39de7070bcfa6410ded1c642ceafd30d14b4 (diff)
downloadmgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.tar
mgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.tar.gz
mgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.tar.bz2
mgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.tar.xz
mgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.zip
(is_extmaint_supported) factorize test for extended maintenance and
alter it btw
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 7ade89e9..6378ccca 100644
--- a/mdkonline.pm
+++ b/mdkonline.pm
@@ -41,6 +41,7 @@ our @EXPORT = qw(find_current_distro
get_urpmi_options
is_it_2008_0
is_enterprise_media_supported
+ is_extmaint_supported
is_restricted_media_supported
translate_product
xml2perl
@@ -73,6 +74,10 @@ sub is_it_2008_0() {
$product_id->{version} eq '2008.0';
}
+sub is_extmaint_supported() {
+ $product_id->{support} eq 'extended'
+}
+
sub is_enterprise_media_supported() {
return if is_it_2008_0();
to_bool($product_id->{type} eq 'Enterprise' && $product_id->{product} eq 'Server');