[projects/pld-ftp-admin] qa: add lint links; handle git

glen glen at pld-linux.org
Mon Jul 21 14:56:35 CEST 2014


commit 38f51586d969e97b53327e266d8ba52e4b2cafdf
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Feb 1 12:56:55 2014 +0200

    qa: add lint links; handle git

 html/qa.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/html/qa.php b/html/qa.php
index 2ad1732..89513cd 100644
--- a/html/qa.php
+++ b/html/qa.php
@@ -31,6 +31,12 @@ $reports = array(
 	"main-i486" => "Main deps i486",
 	"main-ready-i486" => "Main ready deps i486",
 	"main-ready-test-i486" => "Main+ready+test deps i486",
+
+	"freshness" => "GIT vs FTP freshness",
+
+	"lint-PLD" => "rpmlint: main",
+	"lint-test" => "rpmlint: test",
+	"lint-ready" => "rpmlint: ready",
 );
 
 echo "Select report:";
@@ -44,7 +50,7 @@ if (isset($reports[$report])) {
 	$file = "$report.txt";
 	$giturl = 'http://git.pld-linux.org/gitweb.cgi?p=packages/%1$s.git;f=%1$s.spec;h=HEAD;a=shortlog';
 	foreach (file($file) as $line) {
-		$line = preg_replace_callback('/^(?P<prefix>error:)\s*\[(?P<spec>[^]]+)\]\s*(?P<msg>.+)$/', function($m) use ($giturl) {
+		$line = preg_replace_callback('/^(?P<prefix>error:|GIT:)\s*\[(?P<spec>[^]]+)\]\s*(?P<msg>.+)$/', function($m) use ($giturl) {
 			$package = basename($m['spec'], '.spec');
 			$url = sprintf($giturl, $package);
 			return sprintf('<font color=red>%s</font> [<a href="%s">%s</a>] %s', $m['prefix'], $url, $m['spec'], $m['msg']);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/38f51586d969e97b53327e266d8ba52e4b2cafdf



More information about the pld-cvs-commit mailing list