SVN: toys/stbr/index.php
vip
vip at pld-linux.org
Sat Nov 29 00:30:19 CET 2008
Author: vip
Date: Sat Nov 29 00:30:18 2008
New Revision: 10012
Modified:
toys/stbr/index.php
Log:
- handle src-builder errors
Modified: toys/stbr/index.php
==============================================================================
--- toys/stbr/index.php (original)
+++ toys/stbr/index.php Sat Nov 29 00:30:18 2008
@@ -1,6 +1,7 @@
<?
+error_reporting(E_ALL);
ob_start("ob_gzhandler");
-$db = sqlite_open("stbrlog.db");
+$db = sqlite_open("../db/stbrlog.db");
include("queue.php");
@@ -383,6 +384,22 @@
else
{
$info = "not filled";
+
+ // check for src builder status
+ $src_status = `./src-builder-status.py {$q['line']} {$q['aspec']}`;
+
+ if(trim($src_status) == 'FAILED')
+ {
+ $info = "Source builder has failed to build src.rpm";
+
+ $insert = 'INSERT INTO status VALUES ("';
+ $insert .= $p['date'] . '","' . $q['aspec'] .'","';
+ $insert .= $q['abranch'] . '","n/a"';
+ $insert .= ',"","' . $info . '"';
+ $insert .= ',"Check SourceX: tag(s) in .spec file or contact developers.");';
+ $insert = sqlite_escape_string($insert);
+ sqlite_exec($db, $insert, $err);
+ }
}
}
else
More information about the pld-cvs-commit
mailing list