Going back to manual git clone

parent 363e1f62
[buildout] [buildout]
slaposcookbook_recipe_location = ${:parts-directory}/slaposcookbook
sources = sources develop =
auto-checkout = memcached ${:slaposcookbook_recipe_location}
extensions = extensions =
slapos.tool.networkcache slapos.tool.networkcache
slapos.zcbworkarounds slapos.zcbworkarounds
slapos.rebootstrap slapos.rebootstrap
mr.developer
find-links = find-links +=
http://www.nexedi.org/static/packages/source/slapos.buildout/ http://www.nexedi.org/static/packages/source/slapos.buildout/
extends = extends =
...@@ -30,10 +29,6 @@ parts += ...@@ -30,10 +29,6 @@ parts +=
# development / fast switching environment for whole software # development / fast switching environment for whole software
unzip = true unzip = true
[sources]
# Include information related to official memcached source code.
memcached = git http://git.erp5.org/repos/slapos.git branch=memcached
[rebootstrap] [rebootstrap]
# Default first version of rebootstrapped python # Default first version of rebootstrapped python
version = 2 version = 2
...@@ -44,6 +39,11 @@ egg = slapos.cookbook ...@@ -44,6 +39,11 @@ egg = slapos.cookbook
module = memcached module = memcached
[instance-recipe-egg] [instance-recipe-egg]
# Just so buildout executes [slaposcookbook] before [eggs], as
# - [eggs] references [slaposcookbook]
# - [instance-recipe] needs [slaposcookbook] to be finished
# - we cannot rely on anything else being executed before [instance-recipe]
slaposcookbook_dummy = ${slaposcookbook:location}
recipe = zc.recipe.egg recipe = zc.recipe.egg
#python = python2.6 #python = python2.6
eggs = ${instance-recipe:egg} eggs = ${instance-recipe:egg}
...@@ -56,6 +56,16 @@ url = ${:_profile_base_location_}/instance.cfg ...@@ -56,6 +56,16 @@ url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
mode = 0644 mode = 0644
[slaposcookbook]
recipe = plone.recipe.command
branch = memcached
git_param =--quiet -b ${:branch}
git = ${git:location}/bin/git
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
command = ${:git} clone ${:git_param} http://git.erp5.org/repos/slapos.git ${:location} || exit 1;
update-command = cd ${:location} && ${git:location}/bin/git pull --quiet
[versions] [versions]
# Required by: # Required by:
# slapos.cookbook==0.1 # slapos.cookbook==0.1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment