diff options
author | Niels Thykier <niels@thykier.net> | 2019-08-15 07:40:18 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2019-08-15 07:42:45 +0000 |
commit | fd80fc1731f1ae449837bcd97c1135a2052ea88c (patch) | |
tree | 49fb514103dadb4468ac1a417516a37b26fc10fa | |
parent | d40739a0b784892a804cb0538cac55f18ac8d265 (diff) | |
download | debhelper-fd80fc1731f1ae449837bcd97c1135a2052ea88c.tar.gz |
dh_installmodules: Style fix for the regex
Signed-off-by: Niels Thykier <niels@thykier.net>
-rwxr-xr-x | dh_installmodules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_installmodules b/dh_installmodules index 5f4979fc..924a3381 100755 --- a/dh_installmodules +++ b/dh_installmodules @@ -72,7 +72,7 @@ sub find_kernel_modules { return unless -d $searchdir; find(sub { - if (/\.k?o(\.(xz|bz2|gz)|)$/) { + if (m/ [.]k?o (?:[.](?:[gx]z|bz2))? $/x) { my ($kvers)=$File::Find::dir=~m!lib/modules/([^/]+)/!; if (! defined $kvers || ! length $kvers) { warning("Cannot determine kernel version for module $File::Find::name"); |