summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-07-27 10:33:44 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-12-10 14:15:07 +0100
commita4e05db225d23352effb66ffbc166573a2643ea0 (patch)
treeac4c979a5af8410b1bd03d3d81bf514466410aef
parent87d850a66a4c3b1108e9b932926804afa90df0b1 (diff)
downloadurpmi-a4e05db225d23352effb66ffbc166573a2643ea0.tar
urpmi-a4e05db225d23352effb66ffbc166573a2643ea0.tar.gz
urpmi-a4e05db225d23352effb66ffbc166573a2643ea0.tar.bz2
urpmi-a4e05db225d23352effb66ffbc166573a2643ea0.tar.xz
urpmi-a4e05db225d23352effb66ffbc166573a2643ea0.zip
(_replace_kernel_by_its_provide) Adjust for new kernel naming
-rw-r--r--urpm/orphans.pm5
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];
}