]> piware.de Git - bin.git/blobdiff - workitems.py
postinst-setup: update default packages
[bin.git] / workitems.py
index 1147efab359e3ea0471025678392554770e1768e..d30a7e68386752fa0f2db0e611ece170048d274d 100755 (executable)
@@ -111,6 +111,8 @@ def get_blueprint_workitems(blueprint_url):
             state = 'todo'
         if state == 'completed':
             state = 'done'
+        if state == 'inprogress':
+            state = 'todo'
         if state not in valid_states:
             print >> sys.stderr, 'ERROR: invalid state "%s" for work item "%s"' % (
                 state, desc)
@@ -162,7 +164,7 @@ def add_work_item(db, blueprint, item, status):
 def import_lp(db, name_pattern, release):
     '''Collect blueprint work items from Launchpad into DB.'''
 
-    blueprints = get_blueprints('%s//ubuntu/%s/+specs' % (blueprints_base_url,
+    blueprints = get_blueprints('%s//ubuntu/%s/+specs?batch=300' % (blueprints_base_url,
         opts.release), name_pattern)
 
     cur = db.cursor()