Skip dependency expansion completely when ignore_deps? is true
This commit is contained in:
parent
3b76987fd7
commit
caa12678d8
@ -61,8 +61,14 @@ class Build
|
|||||||
|
|
||||||
def initialize(f)
|
def initialize(f)
|
||||||
@f = f
|
@f = f
|
||||||
@deps = expand_deps
|
|
||||||
@reqs = expand_reqs
|
if ARGV.ignore_deps?
|
||||||
|
@deps = []
|
||||||
|
@reqs = []
|
||||||
|
else
|
||||||
|
@deps = expand_deps
|
||||||
|
@reqs = expand_reqs
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def post_superenv_hacks
|
def post_superenv_hacks
|
||||||
@ -113,7 +119,7 @@ class Build
|
|||||||
|
|
||||||
deps.map(&:to_formula).each do |dep|
|
deps.map(&:to_formula).each do |dep|
|
||||||
opt = HOMEBREW_PREFIX/:opt/dep
|
opt = HOMEBREW_PREFIX/:opt/dep
|
||||||
fixopt(dep) unless opt.directory? or ARGV.ignore_deps?
|
fixopt(dep) unless opt.directory?
|
||||||
end
|
end
|
||||||
|
|
||||||
if superenv?
|
if superenv?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user