]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installinfo
r350: * dh_installinfo: changed test to see if an info file is the head file to
[debhelper.git] / dh_installinfo
index 3e64209580bb159bf2c76a6ad2f010a828c81c3e..e00981ef16947c531b43d61a7f34ac5efeb2e608 100755 (executable)
@@ -32,7 +32,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        foreach $file (@info) {
                # Only register with install-info if this is a head file in
                # a tree of info files.
-               if ($file=~/\.info$/ && ! $dh{NOSCRIPTS}) {
+               if ($file !~ /-\d+$/ && ! $dh{NOSCRIPTS}) {
                        # Figure out what section this file goes in.
                        my $section='';
                        open (IN, "<$file") || die "$file: $!";