diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-08 16:25:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-08 16:25:16 +0000 |
commit | 7c1164998504b587091c70c50c142c119e58f04b (patch) | |
tree | f82ebdf2e90cee70719083d9abcae7256e0a6be8 | |
parent | b3f5c4391480e04a0f482c089222ed95ae4731d0 (diff) | |
download | urpmi-7c1164998504b587091c70c50c142c119e58f04b.tar urpmi-7c1164998504b587091c70c50c142c119e58f04b.tar.gz urpmi-7c1164998504b587091c70c50c142c119e58f04b.tar.bz2 urpmi-7c1164998504b587091c70c50c142c119e58f04b.tar.xz urpmi-7c1164998504b587091c70c50c142c119e58f04b.zip |
rename var
-rw-r--r-- | urpm/get_pkgs.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm index a6bdcde9..2a8e5c9d 100644 --- a/urpm/get_pkgs.pm +++ b/urpm/get_pkgs.pm @@ -59,7 +59,7 @@ sub selected2list { foreach my $id (values %fullname2id) { my $pkg = $urpm->{depslist}[$id]; my $fullname = $pkg->fullname; - my @pkgs = $pkg->arch eq 'src' ? do { + my @pkg_ids = $pkg->arch eq 'src' ? do { # packages_by_name can't be used here since $urpm->{provides} doesn't have src.rpm # so a full search is needed my %requested; @@ -72,9 +72,9 @@ sub selected2list { # id_map is a remapping of id. # it is needed because @list must be [ { id => pkg } ] where id is one the selected id, # not really the real package id - $id_map{$_} = $id foreach @pkgs; + $id_map{$_} = $id foreach @pkg_ids; - push @remaining_ids, @pkgs; + push @remaining_ids, @pkg_ids; } @remaining_ids = sort { $a <=> $b } @remaining_ids; |