fixing excludes

This commit is contained in:
Axel Kittenberger 2011-01-26 12:02:43 +00:00
parent 6c1a3edeb0
commit 1a1391dbc5
2 changed files with 8 additions and 8 deletions

View File

@ -1082,17 +1082,17 @@ local Excludes = (function()
if p:byte(-1) == 36 then
-- ends with $
if path:match(p) then
log("Exclude", "'",path,"' matches '",p,"' (1)")
--log("Exclude", "'",path,"' matches '",p,"' (1)")
return true
end
else
-- end either end with / or $
if path:match(p.."/") or path:match(p.."$") then
log("Exclude", "'",path,"' matches '",p,"' (2)")
--log("Exclude", "'",path,"' matches '",p,"' (2)")
return true
end
end
log("Exclude", "'",path,"' NOT matches '",p,"'")
--log("Exclude", "'",path,"' NOT matches '",p,"'")
end
return false
end
@ -3247,7 +3247,6 @@ local default_rsyncssh = {
elist, "/usr/bin/rsync",
"<", zPaths,
config.rsyncOps,
"-r",
"--from0",
"--files-from=-",
config.source,

View File

@ -5,10 +5,11 @@
require("posix")
dofile("tests/testlib.lua")
cwriteln("****************************************************************")
cwriteln(" Testing default.rsyncssh with random data activity ")
cwriteln("****************************************************************")
cwriteln("(This test needs passwordless localhost access of current user)");
cwriteln("****************************************************************");
cwriteln(" Testing default.rsyncssh with random data activity ");
cwriteln("****************************************************************");
cwriteln(" (this test needs passwordless ssh localhost access ");
cwriteln(" for current user)");
local tdir, srcdir, trgdir = mktemps()