aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-12-29 17:16:38 -0600
committerJack Nagel2012-12-30 19:23:53 -0600
commit8fcee6e15f3fef438f8230035f0423c07a45a098 (patch)
tree510a43a1242de524e42bba668b2d2e29843435e2 /Library/Formula
parent36e1eed47988cb03c8bff1e8dce60ad13b07af02 (diff)
downloadhomebrew-8fcee6e15f3fef438f8230035f0423c07a45a098.tar.bz2
Fix some doublethink in the Xcode module
Xcode.prefix and Xcode.installed? use slightly different heuristics to find Xcode. In fact, .installed? basically duplicates a portion of the .prefix logic. In practice, the methods results are usually consistent, but .installed? does not handle non-standard prefixes if mdfind cannot locate Xcode (for example, if the user has disabled Spotlight indexing). Since .installed? is essentially a subset of the .prefix logic, we can rely on the result from .prefix instead. Fixes #16790.
Diffstat (limited to 'Library/Formula')
0 files changed, 0 insertions, 0 deletions