AprRequirement should not short-circuit if apr is installed

If apr is installed, we still want to grab it during dependency
resolution in case we need to pass options to the generated dependency.

In other words, it doesn't make sense for the satisfiable condition to
include the default formula, as the default formula is the fallback for
when the requirement is *not* satisfied.
This commit is contained in:
Jack Nagel 2015-02-02 00:39:04 -05:00
parent d362f5a2fb
commit 208bc0516b

View File

@ -4,7 +4,7 @@ class AprDependency < Requirement
fatal true
default_formula "apr-util"
satisfy { MacOS::CLT.installed? || Formula["apr"].installed? }
satisfy { MacOS::CLT.installed? }
env do
unless MacOS::CLT.installed?