summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-03 12:41:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-03 12:41:13 +0000
commite53f752fe720c1d86806ab07ebc09d0d51b46e1b (patch)
tree9e0b60e8a890d7d6262024b71de9e4dae940c291
parent22222aac2ecbef79b765c20a01e85e900015efc6 (diff)
downloadurpmi-e53f752fe720c1d86806ab07ebc09d0d51b46e1b.tar
urpmi-e53f752fe720c1d86806ab07ebc09d0d51b46e1b.tar.gz
urpmi-e53f752fe720c1d86806ab07ebc09d0d51b46e1b.tar.bz2
urpmi-e53f752fe720c1d86806ab07ebc09d0d51b46e1b.tar.xz
urpmi-e53f752fe720c1d86806ab07ebc09d0d51b46e1b.zip
simplify
-rw-r--r--rpm-find-leaves4
1 files changed, 1 insertions, 3 deletions
diff --git a/rpm-find-leaves b/rpm-find-leaves
index 8ce66809..12703fca 100644
--- a/rpm-find-leaves
+++ b/rpm-find-leaves
@@ -45,9 +45,7 @@ my $discard = $options{restrict_group} && sub { $_[0]->group !~ /\Q$options{grou
my $leaves = urpm::select::installed_leaves($urpm, $discard);
if ($options{fullname}) {
- foreach my $k (sort keys %$leaves) {
- print scalar($leaves->{$k}->fullname), "\n";
- }
+ print "$_\n" foreach sort map { scalar $_->fullname } values %$leaves;
} else {
print "$_\n" foreach sort keys %$leaves;
}