]> piware.de Git - bin.git/blobdiff - workitems.py
workitems.py: Fix parsing of WIs in last line
[bin.git] / workitems.py
index 301b9499de64ca506ff16ba34e648d262df193d3..b9ee19524cbeee4b42e9f6b4917b69115b86c7ac 100755 (executable)
@@ -62,7 +62,7 @@ def parse_argv():
 
     return (opts, args)
 
-def get_blueprints(url, nname_pattern):
+def get_blueprints(url, name_pattern):
     '''Return a list of blueprint URLs for the current release.'''
 
     blueprint_name_filter = re.compile('href="(/ubuntu/\+spec/%s[^"]+)"' %
@@ -91,9 +91,7 @@ def get_workitems(blueprint_url):
                 found_workitems = True
             continue
 
-        l = l.strip()
-        if l.endswith('<br />'):
-            l = l[:-6]
+        l = l.replace('<br />', '').replace('</div>', '').strip()
 
         # ends with empty line
         if l.endswith('</p>') or not l: