diff options
Diffstat (limited to 'urpm/orphans.pm')
-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 a265f676..03f9e64e 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_nosense) { + if ($shortname !~ /^kernel-/) { + foreach (grep { /^kernel/ } $pkg->requires_nosense) { $requested_kernels{$_}{$shortname} = $pkg; } return; |