use the correct_spec function to handle dependencies and requirements
This commit is contained in:
parent
5541a656e2
commit
318a86d786
1 changed files with 2 additions and 8 deletions
|
|
@ -184,10 +184,7 @@ function spec:check(silent)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- turn an id into a spec
|
self.reqs = spec.correct_spec(self.reqs)
|
||||||
if (is == "string") then
|
|
||||||
self.reqs = { self.reqs }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.deps ~= nil then -- spec.deps
|
if self.deps ~= nil then -- spec.deps
|
||||||
|
|
@ -197,10 +194,7 @@ function spec:check(silent)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- turn an id into a spec
|
self.deps = spec.correct_spec(self.deps)
|
||||||
if (is == "string") then
|
|
||||||
self.deps = { self.deps }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if silent == true then
|
if silent == true then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue