diff options
| author | Jack Nagel | 2013-08-20 14:16:13 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-20 14:16:17 -0500 |
| commit | 9b4e07c39aee81d2d7f1888ad105a9d1bfbce763 (patch) | |
| tree | 693fdb49a0172647ee467e2bc64c37cd8762c110 /Library | |
| parent | 34d27d027220345bf8a2e8d128b7f6e93378feb9 (diff) | |
| download | homebrew-9b4e07c39aee81d2d7f1888ad105a9d1bfbce763.tar.bz2 | |
Avoid the need to compact the expanded deps array
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dependency.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index 88ffc99ba..ba5a8ea30 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -73,13 +73,13 @@ class Dependency deps = dependent.deps.map do |dep| case action(dependent, dep, &block) when :prune - next + next [] when :skip expand(dep.to_formula, &block) else expand(dep.to_formula, &block) << dep end - end.flatten.compact + end.flatten merge_repeats(deps) end |
