From: Elan Ruusamäe Date: Mon, 30 Sep 2013 17:46:32 +0000 (+0000) Subject: match make check and fail errors X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=1c26089b6fac3522e4142e2282e755c77f206a16;p=projects%2Fbuildlogs.git match make check and fail errors --- diff --git a/index.php b/index.php index aca5b9f..0669f98 100644 --- a/index.php +++ b/index.php @@ -364,11 +364,16 @@ function dump_log($tail) } $s = htmlspecialchars($s); // highlight errors - if (preg_match("/error(s|\sCS\d+)?:/i", $s)) { + if (preg_match("/(?:fail|error(s|\sCS\d+)?):/i", $s)) { $err_count++; $toc[] = "error $err_count"; $err[] = $s; $s = "$s"; + } elseif (preg_match("#^\+ /usr/bin/make\b.*\b(?Pcheck)\b#", $s, $m)) { + // rpm build section + $toc[] = "make {$m['target']}"; + $err[] = $s; + $s = "$s"; } elseif (substr($s, 0, 2) == "+ ") { // shell verbose $s = "$s"; @@ -492,7 +497,7 @@ function list_archs() "alt=\""._("Powered by PLD Linux")."\" border=\"0\" />
\n" . "(c) 2002 ". "PLD Team
\n". - '$Revision: 1.23 $'. + '$Revision: 1.24 $'. "
\n"; # smile ;) @@ -861,7 +866,7 @@ function welcome() . ;)

-

Version: $Id: index.php,v 1.23 2013/09/07 21:18:46 glen Exp $

+

Version: $Id: index.php,v 1.24 2013/09/08 13:23:20 glen Exp $