diff options
Diffstat (limited to 'urpm/orphans.pm')
-rw-r--r-- | urpm/orphans.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm index 60bfb4a1..a5d5cc5c 100644 --- a/urpm/orphans.pm +++ b/urpm/orphans.pm @@ -431,12 +431,15 @@ kernel: On mdv & mga[1-8], it's for getting the fullname of the matching pkg. Eg: kernel-desktop-5.15.45-1.mga8 -> kernel-desktop-5.15.45-1.mga8-1-1.x86_64 +On mga9+: +We've "kernel-desktop[== 5.15.45-1]", we want to find pkg providing that, eg the NVRA of the pkg named 'kernel-desktop' whose version matches. + =cut sub _replace_kernel_by_its_provide { my ($urpm, $pkg) = @_; my ($req) = grep { /^kernel/ } $pkg->requires; - my @a = $urpm->packages_providing($pkg->requires); + my @a = $urpm->find_candidate_packages($req); $a[0]; } |