diff --git a/Library/Homebrew/cmd/leaves.rb b/Library/Homebrew/cmd/leaves.rb index d7f1292e521d3..b8b0061505965 100644 --- a/Library/Homebrew/cmd/leaves.rb +++ b/Library/Homebrew/cmd/leaves.rb @@ -44,7 +44,7 @@ def installed_on_request?(formula) end def installed_as_dependency?(formula) - formula.any_installed_keg.installed_as_dependency + formula.any_installed_keg.tab.installed_as_dependency end end end