From 277b39d619e6c4b7afe83b0f2df98fef9f66a139 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 10 Nov 2010 15:05:31 +0000
Subject: [PATCH]  - use plone.recipe.command instead of minitage.recipe.fetch
 to fetch    external resources to being able to use own provided subverion
 and    git  - use non interactive options for those commands

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40177 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/software-profiles/erp5-2.12.cfg | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/buildout/software-profiles/erp5-2.12.cfg b/buildout/software-profiles/erp5-2.12.cfg
index 7534b9187d..1ab7fdeecb 100644
--- a/buildout/software-profiles/erp5-2.12.cfg
+++ b/buildout/software-profiles/erp5-2.12.cfg
@@ -5,6 +5,8 @@ extends =
   python-2.6.cfg
   lxml-python.cfg
   python-ldap-python.cfg
+  subversion.cfg
+  git.cfg
 
 parts =
   itools-build
@@ -61,10 +63,18 @@ rpath =
   ${software_definition:software_home}/parts/openssl/lib/
 
 [products-deps]
-recipe = minitage.recipe.fetch
-urls =
-  git://git.hforge.org/Localizer.git|git|| Localizer
-  https://svn.plone.org/svn/collective/ExtFile/trunk|svn|| ExtFile
+# Recipe minitage.recipe.fetch is disabled, as it uses PATH variable, but it
+# is not possible to change its environment to use localy delivered subversion
+# nor git. plone.recipe.command can do same job, but it is controllable which
+# binary will be used
+recipe = plone.recipe.command
+svn_param =--trust-server-cert --non-interactive
+location = ${buildout:parts-directory}/${:_buildout_section_name_}
+command =
+  ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile
+  ${git:location}/bin/git clone git://git.hforge.org/Localizer.git ${:location}/Localizer
+stop-on-error = true
+update-command = ${:command}
 
 [products]
 recipe = plone.recipe.command
-- 
2.30.9