allow never syncing
This commit is contained in:
parent
e0f39fe0db
commit
d406ee18f2
1 changed files with 3 additions and 1 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue