aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-28 20:56:47 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-28 20:56:47 +0000
commitf41cf942f543d5b5177487f50ac0ae1b324b8374 (patch)
tree2f40a1fc3961645442e7d4539edef0f0491a19df /Rpmdrake/pkg.pm
parentd85cdf7535a63431d02bad140a038c70e3452d98 (diff)
downloadrpmdrake-f41cf942f543d5b5177487f50ac0ae1b324b8374.tar
rpmdrake-f41cf942f543d5b5177487f50ac0ae1b324b8374.tar.gz
rpmdrake-f41cf942f543d5b5177487f50ac0ae1b324b8374.tar.bz2
rpmdrake-f41cf942f543d5b5177487f50ac0ae1b324b8374.tar.xz
rpmdrake-f41cf942f543d5b5177487f50ac0ae1b324b8374.zip
(get_pkgs) rename 'short_name' as 'key' after last commit (clearer)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 2f6bfe55..ee7e78a7 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -524,8 +524,8 @@ sub get_pkgs {
foreach my $pkg (@{$urpm->{depslist}}) {
update_pbar($gurpm);
$pkg->flag_upgrade or next;
- my $short_name = $pkg->name . $pkg->arch;
- $l{$short_name} = $pkg if !$l{$short_name} || $l{$short_name}->compare($pkg);
+ my $key = $pkg->name . $pkg->arch;
+ $l{$key} = $pkg if !$l{$key} || $l{$key}->compare($pkg);
}
my @installable_pkgs = map { my $n = $_->fullname; $all_pkgs{$n} = { pkg => $_ }; $n } values %l;
undef %l;