PLD-doc: PLD_www_res/buildlogs.sql/index.php - possibility to get ...

witekfl witekfl at pld-linux.org
Tue Nov 27 10:13:00 CET 2007


Author: witekfl                      Date: Tue Nov 27 09:13:00 2007 GMT
Module: PLD-doc                       Tag: HEAD
---- Log message:
- possibility to get logs by name,
eg. http://buildlogs.pld-linux.org/index.php?dist=th&arch=i686&ok=1&name=rpm

---- Files affected:
PLD-doc/PLD_www_res/buildlogs.sql:
   index.php (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: PLD-doc/PLD_www_res/buildlogs.sql/index.php
diff -u PLD-doc/PLD_www_res/buildlogs.sql/index.php:1.5 PLD-doc/PLD_www_res/buildlogs.sql/index.php:1.6
--- PLD-doc/PLD_www_res/buildlogs.sql/index.php:1.5	Mon Nov 26 20:13:51 2007
+++ PLD-doc/PLD_www_res/buildlogs.sql/index.php	Tue Nov 27 10:12:54 2007
@@ -484,6 +484,13 @@
 	global $buildlogs_server, $local, $log;
 
 	if (isset($log)) return file_name_log($log);
+	if (isset($_GET['name']) && isset($ok) && isset($_GET['arch']) && isset($_GET['dist'])) {
+		$name = basename($_GET['name']);
+		$arch = basename($_GET['arch']);
+		$dist = basename($_GET['dist']);
+		$w = $ok ? "OK" : "FAIL";
+		return "$dist/$arch/$w/$name.bz2";
+	}
 	if (!isset($id))
 		return false;
 	if ($local) {
@@ -1093,7 +1100,7 @@
 			dump_qa(0);
 		else if ($action == "sqa")
 			search_qa();
-		else if (isset($id) || isset($log))
+		else if (isset($id) || isset($log) || isset($_GET['name']))
 			dump_log($action == "tail");
 		else if (isset($idx))
 			list_logs();
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/PLD-doc/PLD_www_res/buildlogs.sql/index.php?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list