pass brew typecheck, brew style and brew tests
This commit is contained in:
parent
624e960cd5
commit
5c2bbe5911
@ -156,6 +156,7 @@ module Homebrew
|
|||||||
# Always include the formula itself.
|
# Always include the formula itself.
|
||||||
formula_list = [formula]
|
formula_list = [formula]
|
||||||
next unless upgrade
|
next unless upgrade
|
||||||
|
|
||||||
deps = args.build_from_source? ? formula.deps.build : formula.deps.required
|
deps = args.build_from_source? ? formula.deps.build : formula.deps.required
|
||||||
# If there are dependencies, try to gather outdated, bottled ones.
|
# If there are dependencies, try to gather outdated, bottled ones.
|
||||||
if deps.any? && check_dep
|
if deps.any? && check_dep
|
||||||
|
|||||||
@ -230,7 +230,7 @@ module Homebrew
|
|||||||
if accepted_inputs.include?(result)
|
if accepted_inputs.include?(result)
|
||||||
break
|
break
|
||||||
elsif declined_inputs.include?(result)
|
elsif declined_inputs.include?(result)
|
||||||
return
|
exit 0
|
||||||
else
|
else
|
||||||
puts "Invalid input. Please enter 'Y', 'y', or 'yes' to proceed, or 'N' to abort."
|
puts "Invalid input. Please enter 'Y', 'y', or 'yes' to proceed, or 'N' to abort."
|
||||||
end
|
end
|
||||||
@ -246,6 +246,7 @@ module Homebrew
|
|||||||
# Always include the formula itself.
|
# Always include the formula itself.
|
||||||
formula_list = [formula]
|
formula_list = [formula]
|
||||||
next unless upgrade
|
next unless upgrade
|
||||||
|
|
||||||
deps = args.build_from_source? ? formula.deps.build : formula.deps.required
|
deps = args.build_from_source? ? formula.deps.build : formula.deps.required
|
||||||
# If there are dependencies, try to gather outdated, bottled ones.
|
# If there are dependencies, try to gather outdated, bottled ones.
|
||||||
if deps.any? && check_dep
|
if deps.any? && check_dep
|
||||||
@ -270,7 +271,6 @@ module Homebrew
|
|||||||
sized_formulae.uniq(&:to_s)
|
sized_formulae.uniq(&:to_s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Compute the total sizes (download, installed, and net) for the given formulae.
|
# Compute the total sizes (download, installed, and net) for the given formulae.
|
||||||
compute_total_sizes = lambda { |sized_formulae, debug: false|
|
compute_total_sizes = lambda { |sized_formulae, debug: false|
|
||||||
total_download_size = 0
|
total_download_size = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user