From 045dd111290fecbf1c34af6e5516e7bf2ad5b44e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Mon, 22 Nov 2010 15:33:03 +0000
Subject: [PATCH]  - as infrae.subversion is using svn command under the hood,
 but there    is no way to pass --trust-server-cert --non-interactive use   
 plone.recipe.command to fetch ERP5 products  - extends common.cfg early to be
 able override it

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40479 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/profiles/official-2.12.cfg      |  2 +-
 buildout/software-profiles/erp5-2.12.cfg | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/buildout/profiles/official-2.12.cfg b/buildout/profiles/official-2.12.cfg
index c273435445..d65b9c85db 100644
--- a/buildout/profiles/official-2.12.cfg
+++ b/buildout/profiles/official-2.12.cfg
@@ -5,6 +5,7 @@ extends =
   ../profiles/versions-2.12.cfg
   ../profiles/software-definition.cfg
   ../software-profiles/apache.cfg
+  ../profiles/common.cfg
   ../software-profiles/erp5-2.12.cfg
   ../software-profiles/file.cfg
   ../software-profiles/garbage-collector.cfg
@@ -29,7 +30,6 @@ extends =
   ../software-profiles/w3m.cfg
   ../software-profiles/varnish.cfg
   ../software-profiles/xpdf.cfg
-  ../profiles/common.cfg
 
 python = software_definition
 versions = versions
diff --git a/buildout/software-profiles/erp5-2.12.cfg b/buildout/software-profiles/erp5-2.12.cfg
index d2687e6b27..6c2dd8eda9 100644
--- a/buildout/software-profiles/erp5-2.12.cfg
+++ b/buildout/software-profiles/erp5-2.12.cfg
@@ -57,6 +57,19 @@ update-command =
   cd ${:location}/Localizer &&
   ${git:location}/bin/git pull
 
+[products-erp5]
+# Recipe infrae.subversion is using svn command under the hood, but there is
+# no way to pass --trust-server-cert --non-interactive, so in 2.12 falvour
+# it is better to evaluate usage of provided subversion command
+recipe = plone.recipe.command
+svn_param =--trust-server-cert --non-interactive
+location = ${buildout:parts-directory}/${:_buildout_section_name_}
+stop-on-error = true
+update-command = ${:command}
+product_list = AGProjects CMFActivity CMFCategory ERP5 ERP5Catalog ERP5Form ERP5Legacy ERP5OOo ERP5Security ERP5SyncML ERP5Type ERP5Wizard ERP5Workflow Formulator HBTreeFolder2 MailTemplates PortalTransforms TimerService ZMySQLDA ZMySQLDDA ZSQLCatalog
+command =
+  for product in ${:product_list} ; do ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/products/$product ${:location}/$product & done
+
 [products]
 recipe = plone.recipe.command
 paths =
-- 
2.30.9