aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-24 15:54:26 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-24 15:54:26 +0000
commit680ca3320037625ec350fff3f0d301a368f5d983 (patch)
tree360a41e38ec7e428e9d588834aa1dc515f331ae8
parent71ac20f49f46bcc39c0060dbaabdcae34da02f38 (diff)
downloadiurt-680ca3320037625ec350fff3f0d301a368f5d983.tar
iurt-680ca3320037625ec350fff3f0d301a368f5d983.tar.gz
iurt-680ca3320037625ec350fff3f0d301a368f5d983.tar.bz2
iurt-680ca3320037625ec350fff3f0d301a368f5d983.tar.xz
iurt-680ca3320037625ec350fff3f0d301a368f5d983.zip
(search_dkms) simplify
-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";
}
}