[projects/pld-builder.new] - make buildlogs address in queue.html configurable

baggins baggins at pld-linux.org
Sat Nov 10 11:23:02 CET 2012


commit 7a8e28a8f3ea670790de5894309408f9c09bd849
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 10 11:22:33 2012 +0100

    - make buildlogs address in queue.html configurable

 PLD_Builder/config.py  | 1 +
 PLD_Builder/request.py | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/PLD_Builder/config.py b/PLD_Builder/config.py
index 2e78cd8..bb0b594 100644
--- a/PLD_Builder/config.py
+++ b/PLD_Builder/config.py
@@ -90,6 +90,7 @@ class Builder_Conf:
         self.arch = get("arch")
         self.chroot = get("chroot")
         self.buildlogs_url = get("buildlogs_url", "/dev/null")
+        self.buildlogs = get("buildlogs", "http://buildlogs.pld-linux.org/")
         self.ftp_url = get("ftp_url")
         self.notify_url = get("notify_url")
         self.test_ftp_url = get("test_ftp_url", "/dev/null")
diff --git a/PLD_Builder/request.py b/PLD_Builder/request.py
index 7104678..a01d593 100644
--- a/PLD_Builder/request.py
+++ b/PLD_Builder/request.py
@@ -302,8 +302,8 @@ class Batch:
                 bld = lin_ar.split('-')
                 tree_name = '-'.join(bld[:-1])
                 tree_arch = '-'.join(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_pre = "<a href=\"%s/index.php?dist=%s&arch=%s&ok=%d&name=%s&id=%s&action=tail\">" \
+                        % (config.buildlogs, urllib.quote(tree_name), urllib.quote(tree_arch), is_ok, urllib.quote(bl_name), urllib.quote(rid))
                 link_post = "</a>"
 
             def ftime(s):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/7a8e28a8f3ea670790de5894309408f9c09bd849



More information about the pld-cvs-commit mailing list