mirror of https://github.com/octoleo/lsyncd.git
This commit is contained in:
parent
a0ab850ec0
commit
288f09ad01
|
@ -1,4 +1,7 @@
|
|||
2017-01-05: 2.1.1
|
||||
????-??-??: 2.2.2
|
||||
fix: checkgauge 'insist'
|
||||
|
||||
2017-01-05: 2.2.1
|
||||
enhancement: now always using filter lists with rysnc
|
||||
instead of include/exclude lists taking advantage of the new --delete-missing-args
|
||||
parameter to delete files on target.
|
||||
|
|
10
lsyncd.lua
10
lsyncd.lua
|
@ -88,7 +88,7 @@ local settingsCheckgauge =
|
|||
statusInterval = true,
|
||||
logfacility = true,
|
||||
logident = true,
|
||||
insisit = true,
|
||||
insist = true,
|
||||
inotifyMode = true,
|
||||
maxProcesses = true,
|
||||
maxDelays = true,
|
||||
|
@ -2091,8 +2091,7 @@ local Sync = ( function
|
|||
end
|
||||
|
||||
-- a sub dir and not concerned about subdirs
|
||||
if
|
||||
self.config.subdirs == false
|
||||
if self.config.subdirs == false
|
||||
and path:sub( #self.source, -1 ):match( '[^/]+/?' )
|
||||
then
|
||||
return false
|
||||
|
@ -3174,7 +3173,9 @@ local Syncs = ( function
|
|||
-- Tests if any sync is interested in a path.
|
||||
--
|
||||
local function concerns
|
||||
( path )
|
||||
(
|
||||
path
|
||||
)
|
||||
for _, s in ipairs( syncsList )
|
||||
do
|
||||
if s:concerns( path )
|
||||
|
@ -3301,6 +3302,7 @@ local Inotify = ( function
|
|||
if wd < 0
|
||||
then
|
||||
log( 'Inotify','Unable to add watch "', path, '"' )
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue