Drop debian package recipes (closes #2122154) stable
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 21 Dec 2011 17:51:38 +0100
branchstable
changeset 802 e08097e621ee
parent 801 af088cb19f61
child 803 8c0027f1a811
Drop debian package recipes (closes #2122154) They're Logilab-specific, better maintained elsewhere.
migration/2.2.1_Any.py
migration/create_recipes.py
recipes.py
--- a/migration/2.2.1_Any.py	Mon Dec 12 16:34:24 2011 +0100
+++ b/migration/2.2.1_Any.py	Wed Dec 21 17:51:38 2011 +0100
@@ -2,4 +2,6 @@
 for step in rql('RecipeStep RS WHERE RS target %(target)s', {'target': u'apycot.get_dependancies'}).entities():
     step.set_attributes(target=u'apycot.get_dependencies')
 
+rql('DELETE Recipe R WHERE R name IN ("apycot.recipe.debian", "apycot.recipe.experimental")')
+
 commit()
--- a/migration/create_recipes.py	Mon Dec 12 16:34:24 2011 +0100
+++ b/migration/create_recipes.py	Wed Dec 21 17:51:38 2011 +0100
@@ -9,7 +9,6 @@
 
 # define new recipes for current test config
 rql('SET X use_recipe Y WHERE X name "quick", Y name "apycot.recipe.quick"')
-rql('SET X use_recipe Y WHERE X name "package", Y name "apycot.recipe.debian"')
 rql('SET X use_recipe Y WHERE X name "full", Y name "apycot.recipe.full"')
 
 commit()
--- a/recipes.py	Mon Dec 12 16:34:24 2011 +0100
+++ b/recipes.py	Wed Dec 21 17:51:38 2011 +0100
@@ -20,33 +20,3 @@
     recipe.add_transition((pylint, pycoverage),
                           recipe.add_step(u'action', u'basic.noop', final=True))
     return recipe
-
-def create_debian_recipe(session):
-    recipe = session.create_entity('Recipe', name=u'apycot.recipe.debian')
-    step1 = recipe.add_step(u'action', u'apycot.init', initial=True)
-    step2 = recipe.add_step(u'action', u'apycot.checkout')
-    step3 = recipe.add_step(u'action', u'apycot.lgp.check')
-    step3bis = recipe.add_step(u'action', u'apycot.lgp.build')
-    step4 = recipe.add_step(u'action', u'apycot.lintian')
-    step5 = recipe.add_step(u'action', u'basic.noop', final=True)
-    recipe.add_transition(step1, step2)
-    recipe.add_transition(step2, (step3, step3bis))
-    recipe.add_transition(step3bis, step4)
-    recipe.add_transition((step3, step4), step5)
-    return recipe
-
-def create_experimental_recipe(session):
-    recipe = session.create_entity('Recipe', name=u'apycot.recipe.experimental')
-    step1 = recipe.add_step(u'recipe', u'apycot.recipe.debian', initial=True)
-    step2 = recipe.add_step(u'action', u'apycot.ldi.upload')
-    step3 = recipe.add_step(u'action', u'apycot.ldi.publish', final=True)
-    recipe.add_transition(step1, step2)
-    recipe.add_transition(step2, step3)
-    return recipe
-
-# def create_publish_recipe(session):
-#     # XXX
-#     # copy/upload from logilab-experimental to logilab-public
-#     # example: ldi upload logilab-public /path/to/experimental/repo/dists/*/*.changes
-#     recipe = session.create_entity('Recipe', name=u'apycot.recipe.publish')
-#     return recipe