pad.lv actually works now

This commit is contained in:
Terence Simpson
2011-03-29 20:40:53 +01:00
parent 2ee7815190
commit 5758a266a0

View File

@ -472,11 +472,11 @@ class Bugtracker(callbacks.PluginRegexp):
return None
if snarfhost.startswith('pad.lv'): # Launchpad URL shortening
# pad.lv//12345 would give us "pad.lv/", so remove dups
snarfhost = snarfhost[:snarfhost.rfind('/')]
snarfhost = '/'.join( (_ for _ in snarfhost.split('/') if _) )
if '/' in snarfhost: # it's not a bug URL
return None
return self.db.get('lp', None)
return self.db.get('launchpad', None)
# End HACK
# At this point, we are only interested in the host part of the URL