[projects/buildlogs] link to gitweb if build is a package
glen
glen at pld-linux.org
Mon Jun 8 20:22:43 CEST 2015
commit 2865efbd8f4689f56663ffffbba2aeb00ba884a1
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Jun 8 21:22:06 2015 +0300
link to gitweb if build is a package
index.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/index.php b/index.php
index 3397013..30eb8ac 100644
--- a/index.php
+++ b/index.php
@@ -293,8 +293,13 @@ function dump_log($tail)
$df = preg_replace("/.*\/([^\/]*)$/", "\\1", $f);
$df = preg_replace("/\.(bz2|gz)$/", "", $df);
+ list($name, $id) = explode(',', $df);
- echo "<h1>$df</h1>";
+ if ($name != 'command') {
+ $gitweb_url = "http://git.pld-linux.org/?p=packages/$name.git;a=summary";
+ $name = "<a href=\"$gitweb_url\">$name</a>";
+ }
+ echo "<h1>$name <small>$id</small></h1>";
echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#000000\" width=\"100%\">";
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/buildlogs.git/commitdiff/2865efbd8f4689f56663ffffbba2aeb00ba884a1
More information about the pld-cvs-commit
mailing list