allow never syncing
This commit is contained in:
@ -62,7 +62,9 @@ end
|
|||||||
---@param package package package table spec
|
---@param package package package table spec
|
||||||
---@return boolean sync
|
---@return boolean sync
|
||||||
local function shouldsync(opts, package)
|
local function shouldsync(opts, package)
|
||||||
if opts.sync == "new" or opts.sync == nil then
|
if opts.sync == "never" then
|
||||||
|
return false
|
||||||
|
elseif opts.sync == "new" or opts.sync == nil then
|
||||||
return not package.exists
|
return not package.exists
|
||||||
else
|
else
|
||||||
return opts.sync == "always"
|
return opts.sync == "always"
|
||||||
|
Reference in New Issue
Block a user