pld-builder.new: PLD_Builder/request.py - link to spec in queue page

glen glen at pld-linux.org
Mon Jun 7 22:09:12 CEST 2010


Author: glen                         Date: Mon Jun  7 20:09:12 2010 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
- link to spec in queue page

---- Files affected:
pld-builder.new/PLD_Builder:
   request.py (1.74 -> 1.75) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/request.py
diff -u pld-builder.new/PLD_Builder/request.py:1.74 pld-builder.new/PLD_Builder/request.py:1.75
--- pld-builder.new/PLD_Builder/request.py:1.74	Thu Jun  3 19:07:16 2010
+++ pld-builder.new/PLD_Builder/request.py	Mon Jun  7 22:09:07 2010
@@ -214,8 +214,18 @@
         if self.is_command():
             desc = "SH: %s [%s]" % (self.command, ' '.join(self.command_flags))
         else:
-            desc = "%s (%s -r %s %s %s %s)" \
-                % (self.src_rpm, self.spec, self.branch, self.bconds_string(), self.kernel_string(), self.target_string())
+            package_url = "http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/%(package)s/%(spec)s?only_with_tag=%(branch)s" % {
+                'spec': self.spec,
+                'branch': self.branch,
+                'package': self.spec[:-5],
+            }
+            desc = "%(src_rpm)s (<a href=\"%(package_url)s\">%(spec)s -r %(branch)s</a>%(bconds)s)" % {
+                'src_rpm': self.src_rpm,
+                'spec': self.spec,
+                'branch': self.branch,
+                'bconds': self.bconds_string() + self.kernel_string() + self.target_string(),
+                'package_url': package_url,
+            }
         f.write("%s <small>[" % desc)
         builders = []
         for b in self.builders:
================================================================

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



More information about the pld-cvs-commit mailing list