allow never syncing

This commit is contained in:
2025-07-01 23:34:00 -04:00
parent e0f39fe0db
commit d406ee18f2

View File

@ -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"