aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-20 19:52:16 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-20 19:52:16 +0000
commit9572b39868a6f3dbe9bb34a15dc757bbd9fd823d (patch)
tree7eec9e9c817f74fce86ba4e9ed0c82b74c14c1ed /Rpmdrake
parent29a0cf3b022e2ae3e00a229620ffe373a9f5431b (diff)
downloadrpmdrake-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')
-rw-r--r--Rpmdrake/pkg.pm4
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;