diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-25 14:09:09 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-25 14:09:09 +0000 |
commit | e21496c91b490d791375e4316bc5d6b475633fe9 (patch) | |
tree | f6edd4d5a9a01390aa3580621e02b16d277d3e64 /mdkapplet | |
parent | da2895c06e2fdde78b0a9eec63d906b85969e987 (diff) | |
download | mgaonline-e21496c91b490d791375e4316bc5d6b475633fe9.tar mgaonline-e21496c91b490d791375e4316bc5d6b475633fe9.tar.gz mgaonline-e21496c91b490d791375e4316bc5d6b475633fe9.tar.bz2 mgaonline-e21496c91b490d791375e4316bc5d6b475633fe9.tar.xz mgaonline-e21496c91b490d791375e4316bc5d6b475633fe9.zip |
(get_distro_list_,get_distro_list) share even more code for mcc
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -286,24 +286,11 @@ Gtk2->main; ugtk2::exit(0); sub is_there_a_new_distributions() { - return if $product_id->{product} =~ /Flash/; - # sanity check for cooker: return if $product_id->{branch} eq 'Devel'; - my @lines = get_distro_list(); - - if (my $err = $@) { - log::explanations("failed to download distribution list:\n$err"); - return; # not a fatal error - } - - if (!@lines) { - log::explanations("empty distribution list"); - return; - } - - my @distros = map { common::parse_LDAP_namespace_structure(chomp_($_)) } @lines; + my @distros = get_distro_list(); + return if !@distros; # do not do anything if current distribution isn't listed on api.mdv.com: return if !member($product_id->{version}, map { $_->{version} } @distros); |