config: hide optional system packages.
Java, XQuartz and the CLT separate header package aren't required for everyone's Homebrew usage or a default macOS development install. As a result, only show then in `brew config` when they are actually installed.
This commit is contained in:
parent
b5bc65d535
commit
78ddc34847
@ -57,11 +57,9 @@ class SystemConfig
|
||||
dump_generic_verbose_config(f)
|
||||
f.puts "macOS: #{MacOS.full_version}-#{kernel}"
|
||||
f.puts "CLT: #{clt || "N/A"}"
|
||||
if MacOS::CLT.separate_header_package?
|
||||
f.puts "CLT headers: #{clt_headers || "N/A"}"
|
||||
end
|
||||
f.puts "Xcode: #{xcode || "N/A"}"
|
||||
f.puts "XQuartz: #{xquartz || "N/A"}"
|
||||
f.puts "CLT headers: #{clt_headers}" if MacOS::CLT.separate_header_package? && clt_headers
|
||||
f.puts "XQuartz: #{xquartz}" if !MacOS::XQuartz.provided_by_apple? && xquartz
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -196,7 +196,7 @@ class SystemConfig
|
||||
end
|
||||
f.puts "Git: #{describe_git}"
|
||||
f.puts "Curl: #{describe_curl}"
|
||||
f.puts "Java: #{describe_java}"
|
||||
f.puts "Java: #{describe_java}" if describe_java != "N/A"
|
||||
end
|
||||
alias dump_generic_verbose_config dump_verbose_config
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user