diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-02-15 19:31:30 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-02-15 19:31:30 +0000 |
commit | 09a50476dcba36057e7ee36927ae7429d6997461 (patch) | |
tree | f925ccfea8f5f6bc55f6bc90431134ed8d79a6a1 | |
parent | 30471ac7a60c358578d6fc63d1ebce22baa0912c (diff) | |
download | rpmdrake-09a50476dcba36057e7ee36927ae7429d6997461.tar rpmdrake-09a50476dcba36057e7ee36927ae7429d6997461.tar.gz rpmdrake-09a50476dcba36057e7ee36927ae7429d6997461.tar.bz2 rpmdrake-09a50476dcba36057e7ee36927ae7429d6997461.tar.xz rpmdrake-09a50476dcba36057e7ee36927ae7429d6997461.zip |
(get_installed_packages) no need to call urpm_name() twice on each package
-rw-r--r-- | Rpmdrake/pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 40e96d61..32811092 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -336,7 +336,7 @@ sub get_installed_packages { my $fullname = urpm_name($pkg); return if $fullname =~ /@/; $all_pkgs->{$fullname} = { - selected => 0, pkg => $pkg, urpm_name => urpm_name($pkg), + selected => 0, pkg => $pkg, urpm_name => $fullname, } if !($all_pkgs->{$fullname} && $all_pkgs->{$fullname}{description}); if (my $name = $base{$fullname}) { $all_pkgs->{$fullname}{base} = \$name; |