]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1687: * dh_installmodules: Look for .ko files too. Closes: #248624
authorjoey <joey>
Thu, 13 May 2004 14:28:26 +0000 (14:28 +0000)
committerjoey <joey>
Thu, 13 May 2004 14:28:26 +0000 (14:28 +0000)
debian/changelog
dh_installmodules

index 21a75533ae7ae9f3ca0ce56454e6730ad7c4a35c..98b10d323366a70861e274f44e6d794367fe3329 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (4.2.11) UNRELEASED; urgency=low
+
+  * dh_installmodules: Look for .ko files too. Closes: #248624
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 13 May 2004 11:25:42 -0300
+
 debhelper (4.2.10) unstable; urgency=low
 
   * dh_strip: if an .a file is not a binary file, do not try to strip it.
index 71a0d1ce570efff8168d25cf64a7c0bf67af454d..28f947cab755e464c36a4b0af09802cbeb77e653 100755 (executable)
@@ -27,7 +27,7 @@ Then postinst and postrm commands are automatically generated to register
 the modules when the package is installed. See L<dh_installdeb(1)> for an
 explanation of how this works. Note that this will be done for any
 package this program acts on which has either the above-mentioned file, or
-has .o files in /lib/modules.
+has .o or .ko files in /lib/modules.
 
 =head1 OPTIONS
 
@@ -56,13 +56,13 @@ instances of the same text to be added to maintainer scripts.
 
 init();
 
-# Returns true if there are any .o files in the passed directory.
+# Returns true if there are any .o or .ko files in the passed directory.
 sub find_kernel_modules {
        my $searchdir=shift;
        my @results=();
 
        return unless -d $searchdir;
-       find(sub { push @results, $_ if /\.o$/ }, $searchdir);
+       find(sub { push @results, $_ if /\.k?o$/ }, $searchdir);
        return @results > 0;
 }