diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-20 19:52:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-20 19:52:16 +0000 |
commit | 9572b39868a6f3dbe9bb34a15dc757bbd9fd823d (patch) | |
tree | 7eec9e9c817f74fce86ba4e9ed0c82b74c14c1ed /Rpmdrake/pkg.pm | |
parent | 29a0cf3b022e2ae3e00a229620ffe373a9f5431b (diff) | |
download | rpmdrake-9572b39868a6f3dbe9bb34a15dc757bbd9fd823d.tar rpmdrake-9572b39868a6f3dbe9bb34a15dc757bbd9fd823d.tar.gz rpmdrake-9572b39868a6f3dbe9bb34a15dc757bbd9fd823d.tar.bz2 rpmdrake-9572b39868a6f3dbe9bb34a15dc757bbd9fd823d.tar.xz rpmdrake-9572b39868a6f3dbe9bb34a15dc757bbd9fd823d.zip |
(get_pkgs) reduce scope of some variables
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r-- | Rpmdrake/pkg.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index baef2ea6..c9aecfec 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -486,7 +486,6 @@ sub get_pkgs { # find out availlable packages: $urpm->{state} = {}; - my (@installable_pkgs, @updates); $gurpm->label(N("Please wait, finding available packages...")); $gurpm->progress($level = 0.66); @@ -511,6 +510,7 @@ sub get_pkgs { $urpm->{rpmdrake_state} = $state; #- Don't forget it $gurpm->progress($level = 0.7); + my @installable_pkgs; reset_pbar_count(1); foreach my $pkg (@{$urpm->{depslist}}) { update_pbar($gurpm); @@ -543,7 +543,7 @@ sub get_pkgs { $all_pkgs{$name} = { pkg => $pkg }; } } - @updates = @requested; + my @updates = @requested; # selecting updates by default but skipped ones (MageiaUpdate only): foreach (@requested_strict) { $all_pkgs{$_}{selected} = 1; |