buildlogs: index.php match make check and fail errors
glen
glen at pld-linux.org
Mon Sep 30 19:46:38 CEST 2013
Author: glen Date: Mon Sep 30 17:46:37 2013 GMT
Module: buildlogs Tag: HEAD
---- Log message:
match make check and fail errors
---- Files affected:
buildlogs:
index.php (1.24 -> 1.25)
---- Diffs:
================================================================
Index: buildlogs/index.php
diff -u buildlogs/index.php:1.24 buildlogs/index.php:1.25
--- buildlogs/index.php:1.24 Sun Sep 8 15:23:20 2013
+++ buildlogs/index.php Mon Sep 30 19:46:32 2013
@@ -364,11 +364,16 @@
}
$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 = "<span class=error id=error-$err_count>$s</span>";
+ } elseif (preg_match("#^\+ /usr/bin/make\b.*\b(?P<target>check)\b#", $s, $m)) {
+ // rpm build section
+ $toc[] = "make {$m['target']}";
+ $err[] = $s;
+ $s = "<span class=line id=make-{$m['target']}>$s</span>";
} elseif (substr($s, 0, 2) == "+ ") {
// shell verbose
$s = "<span class=verbose>$s</span>";
================================================================
---- CVS-web:
http://cvs.pld-linux.org/buildlogs/index.php?r1=1.24&r2=1.25
More information about the pld-cvs-commit
mailing list