aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/xcode.rb
diff options
context:
space:
mode:
authorJack Nagel2012-07-27 02:50:29 -0500
committerJack Nagel2012-07-27 02:50:29 -0500
commit96ee0e90ccaccb9a91dfbe53919998a0adc68cbd (patch)
tree253ac1305bb1e1c1c72ed0c708bad84c9b44cc14 /Library/Homebrew/xcode.rb
parent5a62582b39b7df44c8068970728f0a2f800bf39f (diff)
downloadbrew-96ee0e90ccaccb9a91dfbe53919998a0adc68cbd.tar.bz2
Deduplicate requirements
Because of some quirks in how formulae are loaded, DSL methods invoked in the class definition are called multiple times. This results in, for example, duplicate dependencies and requirements. Code that iterates over requirements and takes some action for each can thus repeat things that shouldn't be repeated, like appending to environment variables. Make DependencyCollector's external_deps a Set, and define eql? and hash on Requirement to prevent these duplicates. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/xcode.rb')
0 files changed, 0 insertions, 0 deletions