use the correct_spec function to handle dependencies and requirements

This commit is contained in:
2025-07-02 15:00:37 -04:00
parent 5541a656e2
commit 318a86d786

View File

@ -184,10 +184,7 @@ function spec:check(silent)
return false
end
-- turn an id into a spec
if (is == "string") then
self.reqs = { self.reqs }
end
self.reqs = spec.correct_spec(self.reqs)
end
if self.deps ~= nil then -- spec.deps
@ -197,10 +194,7 @@ function spec:check(silent)
return false
end
-- turn an id into a spec
if (is == "string") then
self.deps = { self.deps }
end
self.deps = spec.correct_spec(self.deps)
end
if silent == true then