extras-buildsys/www success.psp,1.9,1.10

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Mon Nov 21 15:45:56 UTC 2005


Author: dcbw

Update of /cvs/fedora/extras-buildsys/www
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29895

Modified Files:
	success.psp 
Log Message:
Fix add_to_repo case where endtime is 0


Index: success.psp
===================================================================
RCS file: /cvs/fedora/extras-buildsys/www/success.psp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- success.psp	19 Nov 2005 05:43:24 -0000	1.9
+++ success.psp	21 Nov 2005 15:45:54 -0000	1.10
@@ -75,13 +75,19 @@
         target_target = job['target_target']
         target_repo = job['target_repo']
         target_str = "%s-%s-%s" % (target_distro, target_target, target_repo)
+
+        # 'add_to_repo' jobs don't have an endtime yet
+        endtime = job['endtime']
+        if not endtime or endtime <= 0:
+            endtime = time.time()
+        # endif
 %>
         <tr>
             <td class="job<%=top%><%=col_mod%>"><a href="job.psp<%=job_link(job['uid'])%>"><%=job['uid']%></a></td>
             <td class="job<%=top%><%=col_mod%>"><%=job['package']%></td>
             <td class="job<%=top%><%=col_mod%>"><%=source%></td>
             <td class="job<%=top%><%=col_mod%>"><font class="status-<%=job['status']%>"><%=job['status']%></font></td>
-            <td class="job<%=top%><%=col_mod%>"><%=relative_date_short(job['endtime'])%></td>
+            <td class="job<%=top%><%=col_mod%>"><%=relative_date_short(endtime)%></td>
             <td class="job<%=top%><%=col_mod%>"><%=target_str%></td>
             <td class="job<%=top%><%=col_mod%>"><%=despam_user(job['username'])%></td>
         <tr>




More information about the fedora-extras-commits mailing list