"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-i486" => "Main deps i486", "main-ready-i486" => "Main ready deps i486", "main-ready-test-i486" => "Main+ready+test deps i486", "ac-th-diff" => "Differences between AC and TH", "freshness" => "GIT vs FTP freshness", "lint-PLD" => "rpmlint: main", "lint-test" => "rpmlint: test", "lint-ready" => "rpmlint: ready", ); echo "Select report:"; echo "\n"; if (isset($reports[$report])) { echo "raw
\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'; 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('%s [%s] %s', $m['prefix'], $url, $m['spec'], $m['msg']); }, $line); echo $line, "
\n"; } } ?>