aboutsummaryrefslogtreecommitdiffstats
path: root/main/lsyncd/lpostcmd.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-01-30 10:47:20 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-01-30 10:48:09 +0200
commitb5baa711a9758d453cb33a6e23de7163e5b40c66 (patch)
tree03badc06fed2e9b8b94210ec3bb26e97be2e9c09 /main/lsyncd/lpostcmd.patch
parent6f0559e6f3b1e5e7de0f8d28816971941809324d (diff)
downloadaports-b5baa711a9758d453cb33a6e23de7163e5b40c66.tar.bz2
aports-b5baa711a9758d453cb33a6e23de7163e5b40c66.tar.xz
main/lsyncd: additional fixes to lpostcmd
Diffstat (limited to 'main/lsyncd/lpostcmd.patch')
-rw-r--r--main/lsyncd/lpostcmd.patch39
1 files changed, 6 insertions, 33 deletions
diff --git a/main/lsyncd/lpostcmd.patch b/main/lsyncd/lpostcmd.patch
index 3525a066bc..7f16bf4914 100644
--- a/main/lsyncd/lpostcmd.patch
+++ b/main/lsyncd/lpostcmd.patch
@@ -1,46 +1,19 @@
---- lsyncd-2.1.5/examples/lpostcmd.lua 2013-06-03 14:48:29.000000000 -0300
-+++ ../lpostcmd.lua 2015-01-08 11:11:52.500886631 -0200
+diff -ru lsyncd-2.1.5.orig/examples/lpostcmd.lua lsyncd-2.1.5/examples/lpostcmd.lua
+--- lsyncd-2.1.5.orig/examples/lpostcmd.lua 2015-01-30 09:28:40.376456301 -0200
++++ lsyncd-2.1.5/examples/lpostcmd.lua 2015-01-30 09:28:12.746457070 -0200
@@ -6,7 +6,7 @@
-- after every successfullycompleted rsync operation.
-- for example to restart servlets on the target host or so.
--local rsyncpostcmd = {
+rsyncpostcmd = {
+-local rsyncpostcmd = {
-- based on default rsync.
default.rsync,
-@@ -25,7 +25,7 @@
- -- uses rawget to test if "isPostcmd" has been set without
- -- triggering an error if not.
- local isPostcmd = rawget(event, "isPostcmd")
-- if event.isPostcmd then
-+ if isPostcmd then
- spawn(event, "/usr/bin/ssh",
- config.host, config.postcmd)
- return
-@@ -58,11 +58,11 @@
- return default.collect(agent,exitcode)
- end
- error("this should never be reached")
-- end
-+ end,
-
- -- 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,16 +72,6 @@
- if not config.target then
- config.target = config.host .. ":" .. config.targetdir
- end
-- return default.rsync.prepare(config)
-+ return default.rsync.prepare(config, level, skipTarget)
+@@ -83,12 +83,3 @@
end
}
--
+
-
-sync {
- rsyncpostcmd,