disabled packages were still getting force loaded
This commit is contained in:
parent
9d4322572c
commit
70853bd01e
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue