From cc7ad33a4dbe94f1333f6d0fe80f272e0ea923a0 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Thu, 24 Sep 2009 11:55:24 -0400 Subject: [PATCH] Fix regexp parsing of dsc file for new launchpad API --- pull-lp-source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pull-lp-source b/pull-lp-source index f96ac8d..c025064 100755 --- a/pull-lp-source +++ b/pull-lp-source @@ -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: