diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-12 19:27:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-12 19:27:36 +0000 |
commit | 07b59c7e75275967ad854a41b1d90ac143213ed2 (patch) | |
tree | 3cd14fd2f7f4614f10f7bcdaaed338b9795cae2f /mgaonline.pm | |
parent | a41a9501a185cc06981e69f6b5530e4748649490 (diff) | |
download | mgaonline-07b59c7e75275967ad854a41b1d90ac143213ed2.tar mgaonline-07b59c7e75275967ad854a41b1d90ac143213ed2.tar.gz mgaonline-07b59c7e75275967ad854a41b1d90ac143213ed2.tar.bz2 mgaonline-07b59c7e75275967ad854a41b1d90ac143213ed2.tar.xz mgaonline-07b59c7e75275967ad854a41b1d90ac143213ed2.zip |
drop support for mdv2007.x/2008.x/2009.x
(simplify code and increase perl_checker's SNR)
Diffstat (limited to 'mgaonline.pm')
-rw-r--r-- | mgaonline.pm | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/mgaonline.pm b/mgaonline.pm index c6bb4ea1..2cce07af 100644 --- a/mgaonline.pm +++ b/mgaonline.pm @@ -45,7 +45,6 @@ our @EXPORT = qw(find_current_distro get_release get_stale_upgrade_filename get_urpmi_options - is_it_2008_0 is_enterprise_media_supported is_extmaint_supported is_restricted_media_supported @@ -89,10 +88,6 @@ sub get_release() { ($r); } -sub is_it_2008_0() { - $product_id->{version} eq '2008.0'; -} - sub is_extmaint_supported() { return; # NOT SUPPORTED ON MAGEIA $product_id->{support} eq 'extended'; @@ -100,13 +95,11 @@ sub is_extmaint_supported() { 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); } @@ -133,15 +126,8 @@ sub get_distro_list_() { # for curl exit code, which broke downloads: local $SIG{CHLD} = 'DEFAULT'; - # old API: - if (member($product_id->{version}, qw(2007.1 2008.0 2008.1))) { - require mgaapplet_urpm; - mgaapplet_urpm::ensure_valid_cachedir($urpm); - mgaapplet_urpm::get_content($urpm, $list); - } else { - urpm::ensure_valid_cachedir($urpm); - urpm::download::get_content($urpm, $list); - } + urpm::ensure_valid_cachedir($urpm); + urpm::download::get_content($urpm, $list); }; } @@ -217,7 +203,7 @@ sub get_banner { } sub get_urpmi_options() { - ({ sensitive_arguments => 1 }, 'urpmi.addmedia', if_(!is_it_2008_0(), '--xml-info', 'always')); + ({ sensitive_arguments => 1 }, 'urpmi.addmedia', '--xml-info', 'always'); } sub add_medium_enterprise { |