aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) . ")");