From ad221453b3058bdc13ab4b9314348ac2e5d6d643 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 30 Jun 2012 03:16:50 +0200 Subject: [PATCH] Minor cleanup. //o is only useful if the regex contains variables. --- bin/blhc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/blhc b/bin/blhc index 3169e0b..348dbb6 100755 --- a/bin/blhc +++ b/bin/blhc @@ -641,8 +641,7 @@ foreach my $file (@ARGV) { # only, doesn't use the dpkg-buildpackage header. Necessary to ignore # build logs which aren't built (wrong architecture, build error, # etc.). - if (not $arch - and $line =~ /^Architecture: (.+)$/) { + if (not $arch and $line =~ /^Architecture: (.+)$/) { $arch = $1; } @@ -788,7 +787,7 @@ foreach my $file (@ARGV) { and $line =~ /^(?:checking|[Cc]onfigure:) /; next if $line =~ /^\s*(?:Host\s+)?(?:C(?:\+\+)?\s+)? [Cc]ompiler[\s.]*:?\s+ - /xo; + /x; next if $line =~ /^\s*(?:- )?(?:HOST_)?(?:CC|CXX)\s*=\s*$cc_regex_full\s*$/o; # `moc-qt4`, contains '-I/usr/share/qt4/mkspecs/linux-g++' (or # similar for other architectures) which gets recognized as a -- 2.43.2