Merge pull request #1758 from MikeMcQuaid/no-duplicate-formulae

formula, ARGV: don't output duplicate formulae.
This commit is contained in:
Mike McQuaid 2016-12-31 17:36:33 +00:00 committed by GitHub
commit 9fa95d7218
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ module HomebrewArgvExtension
else
Formulary.find_with_priority(name, spec)
end
end
end.uniq(&:name)
end
def resolved_formulae
@ -79,7 +79,7 @@ module HomebrewArgvExtension
f.follow_installed_alias = false
f
end
end.uniq(&:name)
end
def casks

View File

@ -1406,7 +1406,7 @@ class Formula
Formulary.from_rack(rack)
rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError
end
end.compact
end.compact.uniq(&:name)
end
def self.installed_with_alias_path(alias_path)