aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-06 15:59:28 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-06 15:59:28 +0000
commitc548e10cb168e0750ffd87190bc6aea27176ec2d (patch)
tree1ceff460baea5d1f9e8630c5386e1b7adb82ebab
parent90438827aa4b0f4d5b3a5df695a5c13af8e72b49 (diff)
downloadrpmdrake-c548e10cb168e0750ffd87190bc6aea27176ec2d.tar
rpmdrake-c548e10cb168e0750ffd87190bc6aea27176ec2d.tar.gz
rpmdrake-c548e10cb168e0750ffd87190bc6aea27176ec2d.tar.bz2
rpmdrake-c548e10cb168e0750ffd87190bc6aea27176ec2d.tar.xz
rpmdrake-c548e10cb168e0750ffd87190bc6aea27176ec2d.zip
(get_pkgs) simplify
-rw-r--r--Rpmdrake/pkg.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 6768e292..750370c8 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -475,14 +475,12 @@ sub get_pkgs {
# so there's no need to list the same package several time:
@installable_pkgs = uniq(difference2(\@installable_pkgs, \@updates));
- my @meta_pkgs = (grep { /^task-/ } keys %all_pkgs);
-
+{ urpm => $urpm,
all_pkgs => \%all_pkgs,
installed => \@installed_pkgs,
installable => \@installable_pkgs,
updates => \@updates,
- meta_pkgs => \@meta_pkgs,
+ meta_pkgs => [ grep { /^task-/ } keys %all_pkgs ],
update_descr => $update_descr,
backports => \@backports,
};