pld-builder.new: PLD_Builder/request.py - access to a log by name, ...

witekfl witekfl at pld-linux.org
Wed Dec 26 18:41:47 CET 2007


Author: witekfl                      Date: Wed Dec 26 17:41:47 2007 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
- access to a log by name, not by hash (It saves a few seconds per click.)

---- Files affected:
pld-builder.new/PLD_Builder:
   request.py (1.42 -> 1.43) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/request.py
diff -u pld-builder.new/PLD_Builder/request.py:1.42 pld-builder.new/PLD_Builder/request.py:1.43
--- pld-builder.new/PLD_Builder/request.py:1.42	Thu Dec 20 23:46:47 2007
+++ pld-builder.new/PLD_Builder/request.py	Wed Dec 26 18:41:42 2007
@@ -5,7 +5,6 @@
 import time
 import xml.sax.saxutils
 import fnmatch
-import binascii, md5
 
 import util
 import log
@@ -216,8 +215,8 @@
                 if s == "OK":
                     is_ok = 1
                 bld = lin_ar.split('-')
-                link_pre = "<a href=\"http://buildlogs.pld-linux.org/index.php?dist=%s&arch=%s&ok=%d&id=%s\">" \
-                     % (bld[0], bld[1], is_ok, binascii.b2a_hex(md5.new(path).digest()))
+                link_pre = "<a href=\"http://buildlogs.pld-linux.org/index.php?dist=%s&arch=%s&ok=%d&name=%s\">" \
+                     % (bld[0], bld[1], is_ok, bl_name)
                 link_post = "</a>"
             builders.append(link_pre + ("<font color='%s'><b>%s:%s</b></font>" %
                                         (c, b, s)) + link_post)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/request.py?r1=1.42&r2=1.43&f=u



More information about the pld-cvs-commit mailing list