aboutsummaryrefslogtreecommitdiffstats
path: root/main/lsyncd/0002-Fix-lpostcmd-prepare-to-work-with-recent-changes.patch
blob: 27f921a93d7b5c68f992335c5bdfa01869da584d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 5b76dc1cb6cacd5a086dc3870e39ab2d251ed5dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
Date: Fri, 30 Jan 2015 09:12:02 +0200
Subject: [PATCH 2/3] Fix lpostcmd prepare to work with recent changes

---
 examples/lpostcmd.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/lpostcmd.lua b/examples/lpostcmd.lua
index 11f7faf..8ad339e 100644
--- a/examples/lpostcmd.lua
+++ b/examples/lpostcmd.lua
@@ -62,7 +62,7 @@ local rsyncpostcmd = {
 
 	-- called before anything else
 	-- builds the target from host and targetdir
-	prepare = function(config)
+	prepare = function(config, level, skipTarget)
 		if not config.host then
 			error("rsyncpostcmd neets 'host' configured", 4)
 		end
@@ -72,7 +72,7 @@ local rsyncpostcmd = {
 		if not config.target then
 			config.target = config.host .. ":" .. config.targetdir
 		end
-		return default.rsync.prepare(config)
+		return default.rsync.prepare(config, level, skipTarget)
 	end
 }
 
-- 
2.2.2