summaryrefslogtreecommitdiffstats
path: root/urpm/orphans.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-15 16:23:21 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-15 16:23:21 +0000
commitbd9e851d5d653bdce2537e9b717a8e07838a0aa8 (patch)
treee66aec8a780c2441cc073b39d5b9b1fe7d2a7380 /urpm/orphans.pm
parent905b0ea312cc08b1fdfdc5ea177f4f4f14896add (diff)
downloadurpmi-bd9e851d5d653bdce2537e9b717a8e07838a0aa8.tar
urpmi-bd9e851d5d653bdce2537e9b717a8e07838a0aa8.tar.gz
urpmi-bd9e851d5d653bdce2537e9b717a8e07838a0aa8.tar.bz2
urpmi-bd9e851d5d653bdce2537e9b717a8e07838a0aa8.tar.xz
urpmi-bd9e851d5d653bdce2537e9b717a8e07838a0aa8.zip
(_kernel_callback) keep track of DKMS packages too
Diffstat (limited to 'urpm/orphans.pm')
-rw-r--r--urpm/orphans.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm
index a43f11e8..ae6b1f71 100644
--- a/urpm/orphans.pm
+++ b/urpm/orphans.pm
@@ -354,7 +354,7 @@ sub _get_current_kernel_package() {
# - returns list of kernels
#
# _fast_ version w/o looking at all non kernel packages requires on
-# kernels (like "urpmi_find_leaves '^kernel'" would)
+# kernels (like "urpmi_find_leaves 'kernel'" would)
#
# _all_unrequested_orphans blacklists nearly all kernels b/c of packages
# like 'ndiswrapper' or 'basesystem' that requires 'kernel'
@@ -371,8 +371,8 @@ sub _kernel_callback {
# only consider kernels (and not main 'kernel' package):
# but perform a pass on their requires for dkms like packages that require a specific kernel:
- if ($shortname !~ /^kernel-/) {
- foreach (grep { /^kernel/ } $pkg->requires) {
+ if ($shortname !~ /kernel-/) {
+ foreach (grep { /kernel/ } $pkg->requires) {
$requested_kernels{$_}{$shortname} = $pkg;
}
return;