[Collab-qa-commits] r1230 - buildstat/trunk/buildstat-server/root/src/packages

goneri at alioth.debian.org goneri at alioth.debian.org
Sun Sep 7 19:58:27 UTC 2008


Author: goneri
Date: 2008-09-07 19:58:26 +0000 (Sun, 07 Sep 2008)
New Revision: 1230

Modified:
   buildstat/trunk/buildstat-server/root/src/packages/info.tt2
Log:
if the sourcepackage'd been created from a VCS => show the log of it creation

Modified: buildstat/trunk/buildstat-server/root/src/packages/info.tt2
===================================================================
--- buildstat/trunk/buildstat-server/root/src/packages/info.tt2	2008-09-07 19:40:38 UTC (rev 1229)
+++ buildstat/trunk/buildstat-server/root/src/packages/info.tt2	2008-09-07 19:58:26 UTC (rev 1230)
@@ -20,7 +20,11 @@
 Package avalaible in:
 <ul>
   [% FOREACH repository IN repositorys %]
-  <li>[% IF repository_id == repository.repository_id %]<strong>[% END %]
+  <li>
+  [% IF repository_id == repository.repository_id %]
+  <strong>
+  [% vcs_name = repository.vcs_name %]
+  [% END %]
    <a href="/packages/info/[% sourcepackage_name %]/[% repository.repository_id %]">[% repository.repository_name %]( [% repository.vcs_name %] )</a> 
   [% IF repository_id == repository.repository_id %]</strong>[% END %]
   [% END %]
@@ -100,28 +104,24 @@
         [% IF changelog.epoch %][% changelog.epoch %]:[% END %][% changelog.version %][% IF changelog.isnative %][% changelog.debrevision %][% END %][% changelog.date %]
           [% IF changelog.builds %]
         <table>
-            <tr><th>Status</th><th>Arch</th><th>Svn Rev.</th><th>Date</th><th>Build duration</th></tr>
+            <tr><th>Status</th><th>Arch</th><th>Date</th><th>Build duration</th></tr>
             [% FOREACH build IN changelog.builds -%]
             <tr [% IF ! build.isbuildok %]class="error"[% ELSE %]class="ok"[% END %]>
               <td>
                 [% IF build.isbuildok %]
                 <a href="[% Catalyst.uri_for('/repository/') _ repository_id _ '/' _ sourcepackage_name _ '/' _ changelog.changelogentry_id _ '/build/' _ build.build_id _ '/build.log' %]">Success</a>
                 [% ELSE %]
-                [% IF build.failedstep == "build" %]
                 <a href="[% Catalyst.uri_for('/repository/') _ repository_id _ '/' _ sourcepackage_name _ '/' _ changelog.changelogentry_id _ '/build/' _ build.build_id _ '/build.log' %]">Build failed</a>
-                [% ELSE %] 
-                failed during the "[% build.failedstep %]"
-          
-                [% END %] <!-- [ IF build.failedstep == "build" ] -->
             [% END %] <!-- [ IF build.isbuildok ] -->
+
+            [% IF vcs_name != 'apt' %]
+            / <a href="[% Catalyst.uri_for('/repository/') _ repository_id _ '/' _ sourcepackage_name _ '/' _ changelog.changelogentry_id _ '/sourcepackage-build.log' %]">Srcpkg build</a>
+            [% END %]
           
               </td>
               <td>
-                [% build.arch %]
+                [% build.arch_name %]
               </td>
-              <td>
-                [% build.rev %]
-              </td>
              <td>
                 [% build.time %]
              </td> 




More information about the Collab-qa-commits mailing list