]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
qa: add lint links; handle git
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 1 Feb 2014 10:56:55 +0000 (12:56 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 21 Jul 2014 12:56:26 +0000 (15:56 +0300)
html/qa.php

index 2ad173287859d613cca2539bef092f6e3e0add11..89513cdfb6d26e36e2c397c2bcb71be22fc253f3 100644 (file)
@@ -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']);
This page took 0.396972 seconds and 4 git commands to generate.