summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-07-27 10:33:44 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2023-04-13 15:18:22 +0200
commit0c9b00f27371e64c6ad862b583c5117099dc1f12 (patch)
tree6dde40a7358313ce8d9ac2cf0a41324fe8251380 /urpm
parentd0f58d7b1e214f7738fee6e28da372abf785df4d (diff)
downloadurpmi-0c9b00f27371e64c6ad862b583c5117099dc1f12.tar
urpmi-0c9b00f27371e64c6ad862b583c5117099dc1f12.tar.gz
urpmi-0c9b00f27371e64c6ad862b583c5117099dc1f12.tar.bz2
urpmi-0c9b00f27371e64c6ad862b583c5117099dc1f12.tar.xz
urpmi-0c9b00f27371e64c6ad862b583c5117099dc1f12.zip
(_replace_kernel_by_its_provide) Adjust for new kernel naming
Diffstat (limited to 'urpm')
-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];
}