allow never syncing
This commit is contained in:
@ -62,7 +62,9 @@ end
|
||||
---@param package package package table spec
|
||||
---@return boolean sync
|
||||
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
|
||||
else
|
||||
return opts.sync == "always"
|
||||
|
Reference in New Issue
Block a user