Fix regexp parsing of dsc file for new launchpad API

This commit is contained in:
Jon Bernard 2009-09-24 11:55:24 -04:00
parent f83148b000
commit cc7ad33a4d

View File

@ -54,7 +54,7 @@ class BackportFromLP:
def __prepare_sources(self):
# Scrape the source package from Launchpad :)
contents = urllib2.urlopen('https://launchpad.net/ubuntu/%(target_release)s/+source/%(package)s' % self).read()
links = re.findall('a href=\"(.*\.dsc)\"', contents)
links = re.findall('href=\"(.*\.dsc)\"', contents)
if len(links) == 1 and \
subprocess.call(['dget', '-xu', 'https://launchpad.net%s' % links[0]]) == 0: