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 b2b82db..aa68db9 100644
--- a/lib/Iurt/DKMS.pm
+++ b/lib/Iurt/DKMS.pm
@@ -130,7 +130,7 @@ sub search_dkms {
} elsif ($prefix) {
# other flavour
push @choices, "${prefix}devel-$v";
- if (my ($main_prefix, $_flavour) = $prefix =~ /^([^-]+-)?([^-]+)-$/) {
+ if (my ($main_prefix) = $prefix =~ /^([^-]+-)?[^-]+-$/) {
push @choices, "${main_prefix}source-$v";
}
}