fixing default.direct regression

This commit is contained in:
Axel Kittenberger 2012-10-07 19:49:33 +02:00
parent 1b6d9bb65a
commit 1217fef9ba
3 changed files with 23 additions and 3 deletions

View File

@ -34,6 +34,21 @@ local direct = { }
default.direct = direct
--
-- known configuration parameters
--
direct.checkgauge = {
--
-- inherits rsync config params
--
default.rsync.checkgauge,
rsyncExitCodes = true,
onMove = true,
}
--
-- Spawns rsync for a list of events
--
@ -154,6 +169,12 @@ direct.delay = 1
--
direct.onMove = true
--
-- Rsync configuration for startup.
--
direct.rsync = default.rsync.rsync
direct.rsyncExitCodes = default.rsyncExitCodes
--
-- By default do deletes.
--

View File

@ -48,9 +48,8 @@ default.checkgauge = {
onStartup = true,
onMove = true,
prepare = true,
-- rsyncExitCodes = true, -- TODO
source = true,
-- sshExitCodes = true -- TODO
target = true,
}
--

View File

@ -47,7 +47,7 @@ sync {ccircuit, source ="]]..srcdir..[[", target = "]]..trgdir..[["}
-- test if the filename exists, fails if this is different to expect
local function testfile(filename)
local function testfile(filename)
local stat, err = posix.stat(filename)
if not stat then
cwriteln("failure: ",filename," missing");