diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-24 15:54:26 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-24 15:54:26 +0000 |
commit | 680ca3320037625ec350fff3f0d301a368f5d983 (patch) | |
tree | 360a41e38ec7e428e9d588834aa1dc515f331ae8 | |
parent | 71ac20f49f46bcc39c0060dbaabdcae34da02f38 (diff) | |
download | iurt-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.pm | 2 |
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"; } } |