aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-10 09:50:03 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-10 09:50:03 +0000
commitd552c3b4a606b8476021df6264ce42508d385bae (patch)
tree1d4d2aff290b929446a7e0d04e2e9696508dd2f9 /Rpmdrake
parent1d6d971cea932462c5594b0b5d057cdbfbf2081e (diff)
downloadrpmdrake-d552c3b4a606b8476021df6264ce42508d385bae.tar
rpmdrake-d552c3b4a606b8476021df6264ce42508d385bae.tar.gz
rpmdrake-d552c3b4a606b8476021df6264ce42508d385bae.tar.bz2
rpmdrake-d552c3b4a606b8476021df6264ce42508d385bae.tar.xz
rpmdrake-d552c3b4a606b8476021df6264ce42508d385bae.zip
(get_installed_packages) use a local variable (needed for next commit)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 66705fa5..476b4477 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -313,7 +313,8 @@ sub get_installed_packages {
exists $basepackages{$_} and next;
$db->traverse_tag(m|^/| ? 'path' : 'whatprovides', [ $_ ], sub {
update_pbar($gurpm);
- push @{$basepackages{$_}}, urpm_name($_[0]);
+ my $name = urpm_name($_[0]);
+ push @{$basepackages{$_}}, $name;
push @base, $_[0]->requires_nosense;
});
}