summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-16 14:44:20 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-16 14:44:20 +0000
commitb5da6f7967d91f3c9373d11d66b1597bd4639490 (patch)
tree19041f49bebfe62f1b2a8b553215b448825ddbd5
parentab81ce60c90a0cfb97e8ac662c1a8e6d81d9e234 (diff)
downloadurpmi-b5da6f7967d91f3c9373d11d66b1597bd4639490.tar
urpmi-b5da6f7967d91f3c9373d11d66b1597bd4639490.tar.gz
urpmi-b5da6f7967d91f3c9373d11d66b1597bd4639490.tar.bz2
urpmi-b5da6f7967d91f3c9373d11d66b1597bd4639490.tar.xz
urpmi-b5da6f7967d91f3c9373d11d66b1597bd4639490.zip
(_get_orphan_kernels) simplify
-rw-r--r--urpm/orphans.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm
index e389bded..a265f676 100644
--- a/urpm/orphans.pm
+++ b/urpm/orphans.pm
@@ -398,7 +398,7 @@ sub _get_orphan_kernels() {
# keep kernels required by kernel-*-latest:
delete $kernels{$_} foreach @req_by_latest_kernels;
# return list of unused/orphan kernels:
- %kernels;
+ \%kernels;
}
@@ -432,7 +432,7 @@ sub _all_unrequested_orphans {
}
# add orphan kernels to the list:
- my $a = { _get_orphan_kernels() };
+ my $a = _get_orphan_kernels();
add2hash_(\%l, $a);
# add packages that require orphan kernels to the list: