buildd.debian.org -> launchpad.net

ubuntu/rebased
Colin Watson 12 years ago committed by Iain Lane
parent b6ce105429
commit 21c93cb41e
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

@ -421,6 +421,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 + "; "
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…
Cancel
Save