diff options
-rw-r--r-- | urpm/orphans.pm | 6 |
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; |