From: James McCoy Date: Sun, 29 Jun 2014 03:26:23 +0000 (-0400) Subject: Fix false positive when "compiling" python files X-Git-Tag: 0.05~8 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=332d9415d373e83efbe2e8d03f8df22cb913b560 Fix false positive when "compiling" python files Allow whitespace between the filename and the following “...” or end of line. [SR: Closes Debian Bug #753080.] Signed-off-by: James McCoy Signed-off-by: Simon Ruderich --- diff --git a/bin/blhc b/bin/blhc index 2624585..72918fe 100755 --- 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.