mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-02-13 00:58:29 +00:00
Do not slurp Blanket events when generating lists
This commit is contained in:
parent
ea065d5286
commit
5a0117a9d7
11
lsyncd.lua
11
lsyncd.lua
@ -3035,7 +3035,6 @@ local ssh_exitcodes = {
|
|||||||
[255] = "again",
|
[255] = "again",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
-----
|
-----
|
||||||
-- Lsyncd classic - sync with rsync
|
-- Lsyncd classic - sync with rsync
|
||||||
--
|
--
|
||||||
@ -3045,7 +3044,11 @@ local default_rsync = {
|
|||||||
--
|
--
|
||||||
action = function(inlet)
|
action = function(inlet)
|
||||||
-- gets all events ready for syncing
|
-- gets all events ready for syncing
|
||||||
local elist = inlet.getEvents()
|
local elist = inlet.getEvents(
|
||||||
|
function(event)
|
||||||
|
return event.etype ~= "Blanket"
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
-----
|
-----
|
||||||
-- replaces filter rule by literals
|
-- replaces filter rule by literals
|
||||||
@ -3241,7 +3244,9 @@ local default_rsyncssh = {
|
|||||||
-- for everything else spawn a rsync
|
-- for everything else spawn a rsync
|
||||||
local elist = inlet.getEvents(
|
local elist = inlet.getEvents(
|
||||||
function(e)
|
function(e)
|
||||||
return e.etype ~= "Move" and e.etype ~= "Delete"
|
return e.etype ~= "Move" and
|
||||||
|
e.etype ~= "Delete" and
|
||||||
|
e.etype ~= "Blanket"
|
||||||
end)
|
end)
|
||||||
local paths = elist.getPaths()
|
local paths = elist.getPaths()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user