]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Minor cleanup.
authorSimon Ruderich <simon@ruderich.org>
Sat, 30 Jun 2012 01:16:50 +0000 (03:16 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 30 Jun 2012 01:16:50 +0000 (03:16 +0200)
//o is only useful if the regex contains variables.

bin/blhc

index 3169e0bd63ea7f61fe977fb4d866b6bc844a0ae2..348dbb6c875e6c04842bc60ad9eb1127ecfdab46 100755 (executable)
--- 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