From 473532e7eb2cb890d7db96aa28d782ee9909455b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 May 2011 11:37:02 +0000 Subject: (is_extmaint_supported,is_enterprise_media_supported,is_restricted_media_supported) disable Enterprise media, Extended Maintenance, Restricted media as those are not supported on Mageia but they do exist on mdv (mga#1153) --- NEWS | 3 +++ mgaonline.pm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 9b0dd1a2..6cff12ac 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +- disable features not supported on Mageia but that do exist on mdv: + Enterprise Media, Extended Maintenance, Restricted media (mga#1153) + Version 2.77.26 - 21 May 2010, Thierry Vignaud - handle both MageiaUpdate & MandrivaUpdate diff --git a/mgaonline.pm b/mgaonline.pm index 8671e84a..c6bb4ea1 100644 --- a/mgaonline.pm +++ b/mgaonline.pm @@ -94,15 +94,18 @@ sub is_it_2008_0() { } sub is_extmaint_supported() { + return; # NOT SUPPORTED ON MAGEIA $product_id->{support} eq 'extended'; } sub is_enterprise_media_supported() { + return; # NOT SUPPORTED ON MAGEIA return if is_it_2008_0(); to_bool($product_id->{type} eq 'Enterprise' && $product_id->{product} eq 'Server'); } sub is_restricted_media_supported() { + return; # NOT SUPPORTED ON MAGEIA return if is_it_2008_0(); to_bool($product_id->{product} =~ /powerpack/i); } -- cgit v1.2.1