Handle optional build-time deps correctly
This commit is contained in:
parent
fcfc53df33
commit
93af660c7f
@ -94,10 +94,10 @@ class Build
|
|||||||
|
|
||||||
def expand_deps
|
def expand_deps
|
||||||
f.recursive_dependencies do |dependent, dep|
|
f.recursive_dependencies do |dependent, dep|
|
||||||
if dep.optional? || dep.recommended?
|
if (dep.optional? || dep.recommended?) && dependent.build.without?(dep.name)
|
||||||
Dependency.prune unless dependent.build.with?(dep.name)
|
Dependency.prune
|
||||||
elsif dep.build?
|
elsif dep.build? && dependent != f
|
||||||
Dependency.prune unless dependent == f
|
Dependency.prune
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user