[Mageia-sysadm] [374] Add link to the svn commit

root at mageia.org root at mageia.org
Mon Jan 31 12:02:12 CET 2011


Revision: 374
Author:   pterjan
Date:     2011-01-31 12:02:12 +0100 (Mon, 31 Jan 2011)
Log Message:
-----------
Add link to the svn commit

Modified Paths:
--------------
    build_system/web/index.php

Modified: build_system/web/index.php
===================================================================
--- build_system/web/index.php	2011-01-30 22:18:51 UTC (rev 373)
+++ build_system/web/index.php	2011-01-31 11:02:12 UTC (rev 374)
@@ -151,9 +151,11 @@
             'job'     => $val[9]
         );
     }
-
     $status = $val[1];
     $data = $val[10];
+    if (preg_match("/@(\d+):/", $data, $revision)) {
+        $pkgs[$key]['revision'] = $revision[1];
+    }
     $pkgs[$key]['status'][$status] = 1;
     $ext = $val[11];
     if ($ext == '.src.rpm.info') {
@@ -291,8 +293,8 @@
 <tr class="%s">
     <td>%s</td>
     <td><a href="?user=%s">%s</a></td>
+    <td><a href="http://viewvc.mageia.org/packages?view=revision&revision=%d">%s</a></td>
     <td>%s</td>
-    <td>%s</td>
     <td>%s/%s</td>
     <td class="status-box"></td>
 T;
@@ -303,6 +305,7 @@
             $p['type'],
             timediff(key2timestamp($key)) . ' ago',
             $p['user'], $p['user'],
+            $p['revision'],
             $p['package'],
             $p['version'],
             $p['media'], $p['section']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110131/58d34b57/attachment.html>


More information about the Mageia-sysadm mailing list