From 98e992884ce9f9e46fd63f7a6227514bcbf72285 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Elan=20Ruusam=C3=A4e?=
Date: Sat, 7 Sep 2013 16:58:53 +0000
Subject: [PATCH] - hilight exceprts from errors
---
index.php | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/index.php b/index.php
index f0df720..044bd40 100644
--- a/index.php
+++ b/index.php
@@ -366,19 +366,22 @@ function dump_log($tail)
// highlight errors
if (preg_match("/errors?:/i", $s)) {
$err_count++;
- $s = "$s";
$toc[] = "error $err_count";
+ $err[] = $s;
+ $s = "$s";
} elseif (substr($s, 0, 2) == "+ ") {
// shell verbose
$s = "$s";
} elseif (preg_match("/^Executing\(%(?P\w+)\)/", $s, $m)) {
// rpm build section
- $s = "$s";
$toc[] = $m['section'];
+ $err[] = $s;
+ $s = "$s";
} elseif (preg_match("/^Processing files: (?P(?P.+)-[^-]+-[^-]+)/", $s, $m)) {
// processing files
- $s = "$s";
$toc[] = "files ".$m['name'];
+ $err[] = $s;
+ $s = "$s";
}
echo $s;
}
@@ -389,9 +392,10 @@ function dump_log($tail)
if (!empty($toc)) {
echo ""._("Toc:")."
";
echo "";
- foreach ($toc as $section) {
+ foreach ($toc as $i => $section) {
$id = str_replace(" ", "-", $section);
echo "- {$section}
";
+ echo "{$err[$i]}
";
}
echo "
";
}
@@ -480,7 +484,7 @@ function list_archs()
"alt=\""._("Powered by PLD Linux")."\" border=\"0\" />
\n" .
"(c) 2002 ".
"PLD Team
\n".
- '$Revision: 1.19 $'.
+ '$Revision: 1.20 $'.
"\n";
# smile ;)
@@ -849,7 +853,7 @@ function welcome()
=_("to us")?>. =_("Positive opinions are also")?>
=_("welcome")?> ;)
-Version: $Id: index.php,v 1.19 2012/03/21 11:45:04 glen Exp $
+Version: $Id: index.php,v 1.20 2012/06/22 12:11:12 arekm Exp $
|