mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	buildd.debian.org -> launchpad.net
This commit is contained in:
		
							parent
							
								
									eb8f1c9fc7
								
							
						
					
					
						commit
						65351ba511
					
				@ -432,6 +432,22 @@ class Excuse(object):
 | 
			
		||||
        """Render the excuse in HTML"""
 | 
			
		||||
        res = "<a id=\"%s\" name=\"%s\">%s</a> (%s to %s)\n<ul>\n" % \
 | 
			
		||||
            (self.uvname, self.uvname, self.uvname, self.ver[0], self.ver[1])
 | 
			
		||||
        if self.distribution == "ubuntu":
 | 
			
		||||
            lp_pkg = "https://launchpad.net/%s/+source/%s" % \
 | 
			
		||||
                     (self.distribution, self.name.split("/")[0])
 | 
			
		||||
 | 
			
		||||
            def lp_linkify(version):
 | 
			
		||||
                if version == "-":
 | 
			
		||||
                    return version
 | 
			
		||||
 | 
			
		||||
                return "<a href=\"%s/%s\">%s</a>" % \
 | 
			
		||||
                       (lp_pkg, version, version)
 | 
			
		||||
 | 
			
		||||
            res = (
 | 
			
		||||
                "<a id=\"%s\" name=\"%s\" href=\"%s\">%s</a> (%s to %s)\n<ul>\n" %
 | 
			
		||||
                (self.uvname, self.uvname, lp_pkg, self.uvname,
 | 
			
		||||
                 lp_linkify(self.ver[0]), lp_linkify(self.ver[1])))
 | 
			
		||||
 | 
			
		||||
        info = self._text(excuses)
 | 
			
		||||
        for l in info:
 | 
			
		||||
            res += "<li>%s\n" % l
 | 
			
		||||
 | 
			
		||||
@ -372,17 +372,33 @@ class ExcuseFinder(object):
 | 
			
		||||
                for v in sorted(oodbins):
 | 
			
		||||
                    if oodtxt:
 | 
			
		||||
                        oodtxt = oodtxt + "; "
 | 
			
		||||
                    oodtxt = oodtxt + "%s (from <a href=\"https://buildd.debian.org/status/logs.php?" \
 | 
			
		||||
                                      "arch=%s&pkg=%s&ver=%s\" target=\"_blank\">%s</a>)" % \
 | 
			
		||||
                                      (", ".join(sorted(oodbins[v])), quote(arch), quote(src), quote(v), v)
 | 
			
		||||
                    if self.options.distribution != "ubuntu":
 | 
			
		||||
                        oodtxt = oodtxt + "%s (from <a href=\"https://buildd.debian.org/status/logs.php?" \
 | 
			
		||||
                                        "arch=%s&pkg=%s&ver=%s\" target=\"_blank\">%s</a>)" % \
 | 
			
		||||
                                        (", ".join(sorted(oodbins[v])), quote(arch), quote(src), quote(v), v)
 | 
			
		||||
                    else:
 | 
			
		||||
                        oodtxt = oodtxt + "%s (from <a href=\"https://launchpad.net/%s/+source/" \
 | 
			
		||||
                            "%s/%s/+latestbuild/%s\" target=\"_blank\">%s</a>)" % \
 | 
			
		||||
                            (", ".join(sorted(oodbins[v])), self.options.distribution, quote(src.split("/")[0]),
 | 
			
		||||
                             quote(v), quote(arch), v)
 | 
			
		||||
                if uptodatebins:
 | 
			
		||||
                    text = "old binaries left on <a href=\"https://buildd.debian.org/status/logs.php?" \
 | 
			
		||||
                           "arch=%s&pkg=%s&ver=%s\" target=\"_blank\">%s</a>: %s" % \
 | 
			
		||||
                           (quote(arch), quote(src), quote(source_u.version), arch, oodtxt)
 | 
			
		||||
                    if self.options.distribution == "ubuntu":
 | 
			
		||||
                        text = "old binaries left on <a href=\"https://launchpad.net/%s/+source/" \
 | 
			
		||||
                            "%s/%s/+latestbuild/%s\" target=\"_blank\">%s</a>: %s" % \
 | 
			
		||||
                            (self.options.distribution, quote(src.split("/")[0]), quote(source_u.version),
 | 
			
		||||
                             quote(arch), arch, oodtxt)
 | 
			
		||||
                else:
 | 
			
		||||
                    text = "missing build on <a href=\"https://buildd.debian.org/status/logs.php?" \
 | 
			
		||||
                           "arch=%s&pkg=%s&ver=%s\" target=\"_blank\">%s</a>" % \
 | 
			
		||||
                           (quote(arch), quote(src), quote(source_u.version), arch)
 | 
			
		||||
                    if self.options.distribution == "ubuntu":
 | 
			
		||||
                        text = "missing build on <a href=\"https://launchpad.net/%s/+source/" \
 | 
			
		||||
                            "%s/%s/+latestbuild/%s\" target=\"_blank\">%s</a>: %s" % \
 | 
			
		||||
                            (self.options.distribution, quote(src.split("/")[0]), quote(source_u.version),
 | 
			
		||||
                             quote(arch), arch, oodtxt)
 | 
			
		||||
 | 
			
		||||
                if arch in self.options.outofsync_arches:
 | 
			
		||||
                    text = text + " (but %s isn't keeping up, so nevermind)" % (arch)
 | 
			
		||||
@ -440,6 +456,11 @@ class ExcuseFinder(object):
 | 
			
		||||
                    "arch=%s&pkg=%s&ver=%s&suite=%s\" target=\"_blank\">%s</a> "\
 | 
			
		||||
                    "(relative to target suite)" % \
 | 
			
		||||
                    (quote(arch), quote(src), quote(source_u.version), base, arch)
 | 
			
		||||
                if self.options.distribution == "ubuntu":
 | 
			
		||||
                    text = "Not yet built on "\
 | 
			
		||||
                        "<a href=\"https://launchpad.net/%s/+source/%s/%s/+latestbuild/%s\" target=\"_blank\">%s</a> "\
 | 
			
		||||
                        "(relative to target suite)" % \
 | 
			
		||||
                        (self.options.distribution, quote(src.split("/")[0]), quote(source_u.version), quote(arch), arch)
 | 
			
		||||
 | 
			
		||||
                if arch in self.options.outofsync_arches:
 | 
			
		||||
                    text = text + " (but %s isn't keeping up, so never mind)" % (arch)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user