diff options
author | joeyh <joeyh> | 2006-06-11 17:00:03 +0000 |
---|---|---|
committer | joeyh <joeyh> | 2006-06-11 17:00:03 +0000 |
commit | 1d0708824b6bca8abd6028a306d7512e0c0f0b7b (patch) | |
tree | 67166a1ba7c200881585cbea0ec637a625f1dd38 /dh_installmodules | |
parent | 3ccdc50eabcdcea497fec06c481bce39f8fa32b4 (diff) | |
download | debhelper-1d0708824b6bca8abd6028a306d7512e0c0f0b7b.tar.gz |
r1930: bug fixes
Diffstat (limited to 'dh_installmodules')
-rwxr-xr-x | dh_installmodules | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dh_installmodules b/dh_installmodules index be2efad5..f3e8cc84 100755 --- a/dh_installmodules +++ b/dh_installmodules @@ -67,7 +67,7 @@ sub find_kernel_modules { return unless -d $searchdir; find(sub { if (/\.k?o$/) { - my $kvers=$File::Find::dir=~m!lib/modules/([^/]+)/!; + my ($kvers)=$File::Find::dir=~m!lib/modules/([^/]+)/!; if (! defined $kvers || ! length $kvers) { warning("Cannot determine kernel version for module $File::Find::name"); } @@ -105,8 +105,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if (! $dh{NOSCRIPTS}) { foreach my $kvers (find_kernel_modules("$tmp/lib/modules")) { - autoscript($package,"postinst","postinst-modules","s/#KVERS#/$kvers/"); - autoscript($package,"postrm","postrm-modules","s/#KVERS#/$kvers/"); + autoscript($package,"postinst","postinst-modules","s/#KVERS#/$kvers/g"); + autoscript($package,"postrm","postrm-modules","s/#KVERS#/$kvers/g"); } } } |