From 8942080999ae5719bb3df7fbe9f767f150182fc0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 5 Dec 2012 18:12:57 +0100
Subject: [PATCH] Migrate really deeply.

---
 .../slapos_upgrader/04_ERP5Site_updateLocalRoles.xml           | 3 ++-
 master/bt5/slapos_upgrader/bt/revision                         | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/04_ERP5Site_updateLocalRoles.xml b/master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/04_ERP5Site_updateLocalRoles.xml
index 7148de437..f14c832ee 100644
--- a/master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/04_ERP5Site_updateLocalRoles.xml
+++ b/master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/04_ERP5Site_updateLocalRoles.xml
@@ -59,9 +59,10 @@ if portal.portal_activities.countMessageWithTag(tag) > 0:\n
 method_id = \'Base_updateSlapOSLocalRoles\'\n
 for module_id in portal.objectIds(("ERP5 Folder",)):\n
   if module_id.endswith("_module"):\n
-    portal[module_id].activate().recurseCallMethod(\n
+    portal[module_id].activate(tag=tag).recurseCallMethod(\n
     method_id,\n
     max_retry=0,\n
+    max_depth=5,\n
     activate_kw={\'tag\': tag,}\n
   )\n
 \n
diff --git a/master/bt5/slapos_upgrader/bt/revision b/master/bt5/slapos_upgrader/bt/revision
index 3f10ffe7a..19c7bdba7 100644
--- a/master/bt5/slapos_upgrader/bt/revision
+++ b/master/bt5/slapos_upgrader/bt/revision
@@ -1 +1 @@
-15
\ No newline at end of file
+16
\ No newline at end of file
-- 
2.30.9