From: olivier Date: Thu, 11 Jun 2009 17:11:48 +0000 (+0000) Subject: migration: allow to run a group of tasks X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5f5016dcda24b2e7256ae0194daa409fb3300658;p=telemeta-data.git migration: allow to run a group of tasks git-svn-id: http://svn.parisson.org/svn/crem@100 3bf09e05-f825-4182-b9bc-eedd7160adf0 --- diff --git a/trunk/import/migration/migrate.py b/trunk/import/migration/migrate.py index d6d18f9..c7641a9 100644 --- a/trunk/import/migration/migrate.py +++ b/trunk/import/migration/migrate.py @@ -55,8 +55,11 @@ class MigrationManager(Component): task = None for t in tasks: if only_task: - if t.get_name() == only_task: + name = t.get_name() + if name == only_task or name.split(':')[0] == only_task: task = t + else: + continue else: task = t @@ -68,8 +71,6 @@ class MigrationManager(Component): self.target_db.commit() sys.stdout.write("\t(%.2fs)\n" % (time.time() - start)) done.append(task) - if only_task: - break return done