aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-02 19:48:52 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-02 19:48:52 +0000
commite3116a5c51974085ffab445c07d269d0eb4b00d9 (patch)
tree2bb5988a60f587c35d3532ee31f768c074817061 /lib
parent36dbd3987b8e8503f318872da6028a7c2d1d431b (diff)
downloadiurt-e3116a5c51974085ffab445c07d269d0eb4b00d9.tar
iurt-e3116a5c51974085ffab445c07d269d0eb4b00d9.tar.gz
iurt-e3116a5c51974085ffab445c07d269d0eb4b00d9.tar.bz2
iurt-e3116a5c51974085ffab445c07d269d0eb4b00d9.tar.xz
iurt-e3116a5c51974085ffab445c07d269d0eb4b00d9.zip
prefer match with exact same name first (for devel packages to be preferred)
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/DKMS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm
index 1c028be..9827990 100644
--- a/lib/Iurt/DKMS.pm
+++ b/lib/Iurt/DKMS.pm
@@ -123,13 +123,13 @@ sub search_dkms {
next if $cache->{dkms}{"$realmodule-kernel-$modulesdir-$realversion"} && !$run->{ignore_failure};
if (!$modules{$realmodule}{$realversion}{$modulesdir}) {
my @choices;
+ push @choices, $kernel;
if (my ($name, $v) = $kernel =~ /^([^-]+)-.*-(2\..*)/) {
push @choices, "$name-$v";
}
if (my ($name) = $kernel =~ /(2\..*)/) {
push @choices, $name;
}
- push @choices, $kernel;
my $source = find { $kernel_source{$_} } @choices;
if (!$source) {
plog('ERR', "ERROR: no source for kernel $kernel (tried " . join(", ", @choices) . ")");