]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Fix false positive when "compiling" python files
authorJames McCoy <jamessan@debian.org>
Sun, 29 Jun 2014 03:26:23 +0000 (23:26 -0400)
committerSimon Ruderich <simon@ruderich.org>
Sat, 5 Jul 2014 11:09:23 +0000 (13:09 +0200)
Allow whitespace between the filename and the following “...” or end of
line.

[SR: Closes Debian Bug #753080.]

Signed-off-by: James McCoy <jamessan@debian.org>
Signed-off-by: Simon Ruderich <simon@ruderich.org>
bin/blhc

index 262458520b8f84dab87b9bc53bc673cc444e0035..72918fe5bc57e6494f42657879c3d9fc6563448f 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -466,7 +466,7 @@ sub is_non_verbose_build {
     return 0 if $line =~ /^\s*C\+\+.+?:\s+(?:yes|no)\s*$/;
     return 0 if $line =~ /^\s*C\+\+ Library: stdc\+\+$/;
     # "Compiling" non binary files.
-    return 0 if $line =~ /^\s*Compiling \S+\.(?:py|el)['"]?(?:\.\.\.)?$/;
+    return 0 if $line =~ /^\s*Compiling \S+\.(?:py|el)['"]?\s*(?:\.\.\.)?$/;
     # "Compiling" with no file name.
     if ($line =~ /^\s*[Cc]ompiling\s+(.+?)(?:\.\.\.)?$/) {
         # $file_extension_regex may need spaces around the filename.