summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-06 12:47:18 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-06 12:47:18 +0000
commit619879b7c1f17c8edc6478364b679ad8c68e1231 (patch)
tree86fccad3ce19f8488a8cb1d17bbc22c6aefaefe5
parent06bc248e8dcc20ab2b6609890285f4d49ed8a792 (diff)
downloadmgaonline-619879b7c1f17c8edc6478364b679ad8c68e1231.tar
mgaonline-619879b7c1f17c8edc6478364b679ad8c68e1231.tar.gz
mgaonline-619879b7c1f17c8edc6478364b679ad8c68e1231.tar.bz2
mgaonline-619879b7c1f17c8edc6478364b679ad8c68e1231.tar.xz
mgaonline-619879b7c1f17c8edc6478364b679ad8c68e1231.zip
(is_there_a_new_distributions) rename a variable b/c of hidden
variable (bug in previous commit)
-rwxr-xr-xmdkapplet6
1 files 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;
}