Fix typo in 'get dependencies' action name (closes #1777405) stable
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 08 Dec 2011 12:33:26 +0100
branchstable
changeset 798 b6a790bc5d43
parent 797 83056520c0a2
child 799 c26ca1914724
Fix typo in 'get dependencies' action name (closes #1777405)
migration/2.2.1_Any.py
narval/apycot.py
recipes.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/migration/2.2.1_Any.py	Thu Dec 08 12:33:26 2011 +0100
@@ -0,0 +1,5 @@
+
+for step in rql('RecipeStep RS WHERE RS target %(target)s', {'target': u'apycot.get_dependancies'}):
+    step.set_attributes(target=u'apycot.get_dependencies')
+
+commit()
--- a/narval/apycot.py	Fri Nov 11 14:32:12 2011 +0100
+++ b/narval/apycot.py	Thu Dec 08 12:33:26 2011 +0100
@@ -60,8 +60,8 @@
 
 @input('apycot', 'isinstance(elmt, Test)')
 @output('projectenvs', list=True)
-@action('apycot.get_dependancies')
-def act_get_dependancies(inputs):
+@action('apycot.get_dependencies')
+def act_get_dependencies(inputs):
     """Checkout repository for a test configuration"""
     tconfig = inputs['apycot'].tconfig
     environment = inputs['apycot'].environment
--- a/recipes.py	Fri Nov 11 14:32:12 2011 +0100
+++ b/recipes.py	Thu Dec 08 12:33:26 2011 +0100
@@ -1,7 +1,7 @@
 def create_quick_recipe(session):
     recipe = session.create_entity('Recipe', name=u'apycot.recipe.quick')
     init = recipe.add_step(u'action', u'apycot.init', initial=True)
-    getdeps = init.add_next_step(u'action', u'apycot.get_dependancies')
+    getdeps = init.add_next_step(u'action', u'apycot.get_dependencies')
     checkout = getdeps.add_next_step(u'action', u'apycot.checkout', for_each=u'projectenv')
     install = checkout.add_next_step(u'action', u'apycot.install', for_each=u'projectenv')
     pyunit = install.add_next_step(u'action', u'apycot.pyunit', final=True)
@@ -9,7 +9,7 @@
 def create_full_recipe(session):
     recipe = session.create_entity('Recipe', name=u'apycot.recipe.full')
     init = recipe.add_step(u'action', u'apycot.init', initial=True)
-    getdeps = init.add_next_step(u'action', u'apycot.get_dependancies')
+    getdeps = init.add_next_step(u'action', u'apycot.get_dependencies')
     checkout = getdeps.add_next_step(u'action', u'apycot.checkout', for_each=u'projectenv')
     install = checkout.add_next_step(u'action', u'apycot.install', for_each=u'projectenv')
     pylint = recipe.add_step(u'action', u'apycot.pylint')