diff --git a/britney.py b/britney.py
index 8f1d756..890a988 100755
--- a/britney.py
+++ b/britney.py
@@ -1409,7 +1409,7 @@ class Britney(object):
base = 'testing'
else:
base = 'stable'
- text = "Not yet built on %s (relative to testing)" % (urllib.quote(src), urllib.quote(source_u[VERSION]), arch)
+ text = "Not yet built on %s (relative to testing)" % (urllib.quote(src.split("/")[0]), urllib.quote(source_u[VERSION]), arch)
if arch in self.options.outofsync_arches.split():
text = text + " (but %s isn't keeping up, so never mind)" % (arch)
@@ -1457,10 +1457,10 @@ class Britney(object):
if oodtxt: oodtxt = oodtxt + "; "
oodtxt = oodtxt + "%s (from %s)" % \
- (", ".join(sorted(oodbins[v])), urllib.quote(src), urllib.quote(v), v)
+ (", ".join(sorted(oodbins[v])), urllib.quote(src.split("/")[0]), urllib.quote(v), v)
text = "out of date on %s: %s" % \
- (urllib.quote(src), urllib.quote(source_u[VERSION]), arch, oodtxt)
+ (urllib.quote(src.split("/")[0]), urllib.quote(source_u[VERSION]), arch, oodtxt)
if arch in self.options.outofsync_arches.split():
text = text + " (but %s isn't keeping up, so nevermind)" % (arch)
diff --git a/excuse.py b/excuse.py
index af4cb79..a858ee0 100644
--- a/excuse.py
+++ b/excuse.py
@@ -121,7 +121,7 @@ class Excuse(object):
def html(self):
"""Render the excuse in HTML"""
- lp_pkg = "https://launchpad.net/ubuntu/+source/%s" % self.name
+ lp_pkg = "https://launchpad.net/ubuntu/+source/%s" % self.name.split("/")[0]
if self.ver[0] == "-":
lp_old = self.ver[0]
else: