From e0efffa4e496f5c08b205d23dc50befd880caef5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Fri, 6 May 2011 15:55:15 +0200
Subject: [PATCH] Use locally provided perl to run perl binary.

---
 slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py b/slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py
index 86e6b0b4a4..4f4686fd29 100644
--- a/slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py
+++ b/slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py
@@ -817,7 +817,7 @@ SSLRandomSeed connect builtin
     incremental_backup = os.path.join(backup_directory, 'incremental')
     self._createDirectory(full_backup)
     self._createDirectory(incremental_backup)
-    innobackupex_argument_list = [self.options['innobackupex_binary'], '--defaults-file=%s' % mysql_conf_path, '--socket=%s' %mysql_conf['socket'].strip(), '--user=root']
+    innobackupex_argument_list = [self.options['perl_binary'], self.options['innobackupex_binary'], '--defaults-file=%s' % mysql_conf_path, '--socket=%s' %mysql_conf['socket'].strip(), '--user=root']
     environment = dict(PATH=':'.join([self.bin_directory] + os.environ['PATH'].split(':')))
     innobackupex_incremental = zc.buildout.easy_install.scripts([('innobackupex_incremental',
       __name__ + '.execute', 'executee')], self.ws,
-- 
2.30.9