aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2012-08-23 14:33:33 -0500
committerJack Nagel2012-08-23 18:13:54 -0500
commitfd151f8999f7aa85e1cf77b3232f531fb83bf38b (patch)
tree5b67b99b8fa0ebfb0b7719230c349243ce425aee /Library/Homebrew/test
parentad0dd3d3de9df04cea41dc82626f510397a46a21 (diff)
downloadbrew-fd151f8999f7aa85e1cf77b3232f531fb83bf38b.tar.bz2
factory: always check const_defined? before requiring
Specifying dependencies with a URL works, even if by accident, but factory is called repeatedly on this URL and this results in multiple downloads of the same file. Fix this by checking const_defined? here too, and DRY up the code a bit. Fixes Homebrew/homebrew#14285. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/test')
0 files changed, 0 insertions, 0 deletions