disabled packages were still getting force loaded
This commit is contained in:
@ -244,6 +244,10 @@ function package:ensureadded(force)
|
||||
--- load a package
|
||||
---@param pkg package
|
||||
local function loadpkg(pkg)
|
||||
if not self.enabled then
|
||||
return false
|
||||
end
|
||||
|
||||
-- make sure to load the dependencies first
|
||||
for _, p in pairs(pkg.requirements) do
|
||||
if not p.loaded then
|
||||
|
Reference in New Issue
Block a user