From b5da6f7967d91f3c9373d11d66b1597bd4639490 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 16 Oct 2012 14:44:20 +0000 Subject: (_get_orphan_kernels) simplify --- urpm/orphans.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm') 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: -- cgit v1.2.1