[migration] ensure Repository and ProjectEnvironment have recipes draft
authorDavid Douard <david.douard@logilab.fr>
Thu, 20 Nov 2014 23:14:28 +0100
changeset 1779 52df5eea680c
parent 1778 884c710a25fc
child 1780 d47dfaf9f065
[migration] ensure Repository and ProjectEnvironment have recipes
migration/4.0.0_Any.py
--- a/migration/4.0.0_Any.py	Thu Nov 20 23:13:50 2014 +0100
+++ b/migration/4.0.0_Any.py	Thu Nov 20 23:14:28 2014 +0100
@@ -20,3 +20,10 @@
 from cubes.apycot import recipes
 recipes.create_recipes(session, update=True)
 
+# add checkout recipes to repositories
+rql('SET REPO checkout_recipe CR WHERE CR name "apycot.checkout.mercurial", '
+    'REPO type "mercurial", NOT REPO checkout_recipe CR2')
+# add setup recipes to project environments
+rql('SET PE setup_recipe SR WHERE SR name "apycot.setup.distutils", '
+    'NOT PE setup_recipe SR2')
+