diff options
| author | Jack Nagel | 2012-08-23 14:33:33 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-23 18:13:54 -0500 |
| commit | fd151f8999f7aa85e1cf77b3232f531fb83bf38b (patch) | |
| tree | 5b67b99b8fa0ebfb0b7719230c349243ce425aee /Library/Homebrew/test | |
| parent | ad0dd3d3de9df04cea41dc82626f510397a46a21 (diff) | |
| download | brew-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
