X-Git-Url: https://git.tld-linux.org/?p=tld-ftp-admin.git;a=blobdiff_plain;f=html%2Fqa.php;fp=html%2Fqa.php;h=0000000000000000000000000000000000000000;hp=a24416e9c9f031bb2f7a2080a54a19f60ed6a33a;hb=f7b22268ab563fa906be0653d037f1805e220e5c;hpb=b7b854ca43601a08077b7c4c4fa1313a198d936a diff --git a/html/qa.php b/html/qa.php deleted file mode 100644 index a24416e..0000000 --- a/html/qa.php +++ /dev/null @@ -1,103 +0,0 @@ - - - - PLD QA Reports - - - - - - - "Main deps x86_64", - "main-ready" => "Main ready deps x86_64", - "main-ready-test" => "Main+ready+test deps x86_64", - - "main-i686" => "Main deps i686", - "main-ready-i686" => "Main ready deps i686", - "main-ready-test-i686" => "Main+ready+test deps i686", - - "main-x32" => "Main deps x32", - "main-ready-x32" => "Main ready deps x32", - "main-ready-test-x32" => "Main+ready+test deps x32", - - "freshness" => "GIT vs FTP freshness", - - "lint-PLD" => "rpmlint: main", - "lint-test" => "rpmlint: test", - "lint-ready" => "rpmlint: ready", -); - -function reports_selection($reports) { - global $report; - echo "Select report:"; - echo "\n"; -} - -/** - * Create text input for filtering results - */ -function filter_box() { - echo '
Filter results: '; - echo '
? errors'; -} - -function format_report($report) { - echo "
View the raw report
\n"; - $file = "$report.txt"; - $giturl = 'http://git.pld-linux.org/gitweb.cgi?p=packages/%1$s.git;f=%1$s.spec;h=HEAD;a=shortlog'; - echo '
    '; - foreach (file($file) as $line) { - $line = preg_replace_callback('/^(?Perror:|GIT:)\s*\[(?P[^]]+)\]\s*(?P.+)$/', function($m) use ($giturl) { - $package = basename($m['spec'], '.spec'); - $url = sprintf($giturl, $package); - return sprintf('
  1. %s [%s] %s', $m['prefix'], $url, $m['spec'], $m['msg']); - }, $line); - echo $line, "
    \n"; - } - echo '
'; -} - -reports_selection($reports); -filter_box(); -if (isset($reports[$report])) { - format_report($report); -} - -?> - -