summaryrefslogtreecommitdiffstats
path: root/urpm/orphans.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-16 20:11:52 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-16 20:11:52 +0000
commitf11e3bb45ff0f1e000e550eb7a4d1cb6acd6a1aa (patch)
tree16747d7355f4c06aa392398a6013e5a59b607482 /urpm/orphans.pm
parent5fef3fc1d701a4a63382dc47626663a7d0ccf6bb (diff)
downloadurpmi-f11e3bb45ff0f1e000e550eb7a4d1cb6acd6a1aa.tar
urpmi-f11e3bb45ff0f1e000e550eb7a4d1cb6acd6a1aa.tar.gz
urpmi-f11e3bb45ff0f1e000e550eb7a4d1cb6acd6a1aa.tar.bz2
urpmi-f11e3bb45ff0f1e000e550eb7a4d1cb6acd6a1aa.tar.xz
urpmi-f11e3bb45ff0f1e000e550eb7a4d1cb6acd6a1aa.zip
fix computing kernel orphans when running kernel is not the latest (2/2)
prevent trying to remove the currently running (not latest) kernel reintroducing a line drop in commit r6238 from Oct 15 2012: "(_all_unrequested_orphans) prevent offering to remove DKMS modules for current kernel (mga#5092)"
Diffstat (limited to 'urpm/orphans.pm')
-rw-r--r--urpm/orphans.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm
index 03f9e64e..633c6be1 100644
--- a/urpm/orphans.pm
+++ b/urpm/orphans.pm
@@ -441,6 +441,7 @@ sub _all_unrequested_orphans {
}
# do not offer to remove current kernel or DKMS modules for current kernel:
+ delete $l{$current_kernel};
do { delete $l{$_} } foreach grep { /$current_kernel_version/ } keys %l;
[ values %l ];
}