pld-builder.new: PLD_Builder/request.py - replace bigger crap with smaller one
arekm
arekm at pld-linux.org
Wed Oct 13 15:37:42 CEST 2010
Author: arekm Date: Wed Oct 13 13:37:42 2010 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- replace bigger crap with smaller one
---- Files affected:
pld-builder.new/PLD_Builder:
request.py (1.87 -> 1.88)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/request.py
diff -u pld-builder.new/PLD_Builder/request.py:1.87 pld-builder.new/PLD_Builder/request.py:1.88
--- pld-builder.new/PLD_Builder/request.py:1.87 Wed Oct 13 15:22:16 2010
+++ pld-builder.new/PLD_Builder/request.py Wed Oct 13 15:37:37 2010
@@ -269,12 +269,10 @@
if s.startswith("OK"):
is_ok = 1
bld = lin_ar.split('-')
- 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))
+ tree_name = '-'.join(bld[:-1])
+ tree_arch = bld[-1:]
+ 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(tree_name), urllib.quote(tree_arch), is_ok, urllib.quote(bl_name), urllib.quote(rid))
link_post = "</a>"
def ftime(s):
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/request.py?r1=1.87&r2=1.88&f=u
More information about the pld-cvs-commit
mailing list