From 619879b7c1f17c8edc6478364b679ad8c68e1231 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 6 Oct 2008 12:47:18 +0000 Subject: (is_there_a_new_distributions) rename a variable b/c of hidden variable (bug in previous commit) --- mdkapplet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mdkapplet b/mdkapplet index 24a8f459..5b9173a2 100755 --- a/mdkapplet +++ b/mdkapplet @@ -300,12 +300,12 @@ sub is_there_a_new_distributions() { # only compare first distro: if it's not the same as the currently installed one, # then it's the most recent release: - my $new_distro = $distros[0]; + my $new_distribution = $distros[0]; return if !member($product_id->{version}, map { $_->{version} } @distros); - if ($new_distro && $new_distro->{version} ne $product_id->{version}) { - $::new_distro = $new_distro; + if ($new_distribution && $new_distribution->{version} ne $product_id->{version}) { + $new_distro = $new_distribution; log::explanations(sprintf("new '%s' distribution was released on %s", $new_distro->{version}, $new_distro->{release_date})); return 1; } -- cgit v1.2.1