diff options
Diffstat (limited to 'rpm-find-leaves')
-rw-r--r-- | rpm-find-leaves | 4 |
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; } |