summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-03 12:39:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-03 12:39:56 +0000
commit22222aac2ecbef79b765c20a01e85e900015efc6 (patch)
treed74f4023fb060c0233a663c8347148ddb95e346c
parent793a6259f679ac5f9c123ca9a6827d5ac4250361 (diff)
downloadurpmi-22222aac2ecbef79b765c20a01e85e900015efc6.tar
urpmi-22222aac2ecbef79b765c20a01e85e900015efc6.tar.gz
urpmi-22222aac2ecbef79b765c20a01e85e900015efc6.tar.bz2
urpmi-22222aac2ecbef79b765c20a01e85e900015efc6.tar.xz
urpmi-22222aac2ecbef79b765c20a01e85e900015efc6.zip
simplify
-rw-r--r--rpm-find-leaves3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpm-find-leaves b/rpm-find-leaves
index 731e8e5b..8ce66809 100644
--- a/rpm-find-leaves
+++ b/rpm-find-leaves
@@ -46,8 +46,7 @@ my $leaves = urpm::select::installed_leaves($urpm, $discard);
if ($options{fullname}) {
foreach my $k (sort keys %$leaves) {
- my $l = $leaves->{$k};
- print $l->name, '-', $l->version, '-', $l->release, '.', $l->arch, "\n";
+ print scalar($leaves->{$k}->fullname), "\n";
}
} else {
print "$_\n" foreach sort keys %$leaves;