summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-25 14:09:09 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-25 14:09:09 +0000
commite21496c91b490d791375e4316bc5d6b475633fe9 (patch)
treef6edd4d5a9a01390aa3580621e02b16d277d3e64 /mdkapplet
parentda2895c06e2fdde78b0a9eec63d906b85969e987 (diff)
downloadmgaonline-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-xmdkapplet17
1 files changed, 2 insertions, 15 deletions
diff --git a/mdkapplet b/mdkapplet
index 7af8938a..31fc05ae 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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);