Merge pull request #1308 from apjanke/info-with-formula-options
brew info: include options to dependencies in display
This commit is contained in:
commit
551ce2b5d2
@ -165,9 +165,13 @@ module Homebrew
|
|||||||
|
|
||||||
def decorate_dependencies(dependencies)
|
def decorate_dependencies(dependencies)
|
||||||
deps_status = dependencies.collect do |dep|
|
deps_status = dependencies.collect do |dep|
|
||||||
dep.installed? ? pretty_installed(dep) : pretty_uninstalled(dep)
|
if dep.satisfied?([])
|
||||||
|
pretty_installed(dep_display_s(dep))
|
||||||
|
else
|
||||||
|
pretty_uninstalled(dep_display_s(dep))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
deps_status * ", "
|
deps_status.join(", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
def decorate_requirements(requirements)
|
def decorate_requirements(requirements)
|
||||||
@ -177,4 +181,9 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
req_status.join(", ")
|
req_status.join(", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def dep_display_s(dep)
|
||||||
|
return dep.name if dep.option_tags.empty?
|
||||||
|
"#{dep.name} #{dep.option_tags.map { |o| "--#{o}" }.join(" ")}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user