diff options
| author | Mike McQuaid | 2017-01-17 19:58:52 +0000 |
|---|---|---|
| committer | GitHub | 2017-01-17 19:58:52 +0000 |
| commit | ffa5ebde53139bd856e834001ba479071874f8fb (patch) | |
| tree | 7ef312fae9f490f5426874601cb26cda9c8bc860 /Library/Homebrew/cmd | |
| parent | 1497dfaced84d92b87dc1b77dd95d9d3a952298c (diff) | |
| parent | 9475622c070d941b044f94eafef0d46aa29568bc (diff) | |
| download | brew-ffa5ebde53139bd856e834001ba479071874f8fb.tar.bz2 | |
Merge pull request #1863 from alyssais/uses_ignore_untapped
uses: properly handle untapped formulae in recursive dependency expansion (again!)
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/uses.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/uses.rb b/Library/Homebrew/cmd/uses.rb index e5e140d36..5f6611dfc 100644 --- a/Library/Homebrew/cmd/uses.rb +++ b/Library/Homebrew/cmd/uses.rb @@ -57,6 +57,12 @@ module Homebrew elsif dep.build? Dependency.prune unless includes.include?("build?") end + + # If a tap isn't installed, we can't find the dependencies of one + # its formulae, and an exception will be thrown if we try. + if dep.is_a?(TapDependency) && !dep.tap.installed? + Dependency.keep_but_prune_recursive_deps + end end dep_formulae = deps.map do |dep| |
