pld-builder.new: PLD_Builder/request.py - try to fix the th-dev wrong arch ...

shadzik shadzik at pld-linux.org
Wed Oct 13 15:22:21 CEST 2010


Author: shadzik                      Date: Wed Oct 13 13:22:21 2010 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
- try to fix the th-dev wrong arch issue

---- Files affected:
pld-builder.new/PLD_Builder:
   request.py (1.86 -> 1.87) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/request.py
diff -u pld-builder.new/PLD_Builder/request.py:1.86 pld-builder.new/PLD_Builder/request.py:1.87
--- pld-builder.new/PLD_Builder/request.py:1.86	Wed Sep 15 20:31:01 2010
+++ pld-builder.new/PLD_Builder/request.py	Wed Oct 13 15:22:16 2010
@@ -269,7 +269,11 @@
                 if s.startswith("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&name=%s&id=%s&action=tail\">" \
+                if (len(bld) > 2):
+                    link_pre = "<a href=\"http://buildlogs.pld-linux.org/index.php?dist=%s-%s&arch=%s&ok=%d&name=%s&id=%s&action=tail\">" \
+                     % (urllib.quote(bld[0]), urllib.quote(bld[1]), urllib.quote(bld[2]), is_ok, urllib.quote(bl_name), urllib.quote(rid))
+                else:
+                    link_pre = "<a href=\"http://buildlogs.pld-linux.org/index.php?dist=%s&arch=%s&ok=%d&name=%s&id=%s&action=tail\">" \
                      % (urllib.quote(bld[0]), urllib.quote(bld[1]), is_ok, urllib.quote(bl_name), urllib.quote(rid))
                 link_post = "</a>"
 
================================================================

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



More information about the pld-cvs-commit mailing list