aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-07-27 02:50:29 -0500
committerJack Nagel2012-07-27 02:50:29 -0500
commite8db4125244445993ebc4aad8126b14bfdc84aae (patch)
tree4330eb0086ac48017ec4db39fa22b02f6c13a17f /Library/Formula
parent5e3777a3c8b85f63502c1ccf8adca62c6c682588 (diff)
downloadhomebrew-e8db4125244445993ebc4aad8126b14bfdc84aae.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/Formula')
0 files changed, 0 insertions, 0 deletions