diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index f5440407ec..eec494b47b 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -156,6 +156,7 @@ module Homebrew # Always include the formula itself. formula_list = [formula] next unless upgrade + deps = args.build_from_source? ? formula.deps.build : formula.deps.required # If there are dependencies, try to gather outdated, bottled ones. if deps.any? && check_dep diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index 89561c82b5..0a6cc0e710 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -230,7 +230,7 @@ module Homebrew if accepted_inputs.include?(result) break elsif declined_inputs.include?(result) - return + exit 0 else puts "Invalid input. Please enter 'Y', 'y', or 'yes' to proceed, or 'N' to abort." end @@ -246,6 +246,7 @@ module Homebrew # Always include the formula itself. formula_list = [formula] next unless upgrade + deps = args.build_from_source? ? formula.deps.build : formula.deps.required # If there are dependencies, try to gather outdated, bottled ones. if deps.any? && check_dep @@ -270,7 +271,6 @@ module Homebrew sized_formulae.uniq(&:to_s) } - # Compute the total sizes (download, installed, and net) for the given formulae. compute_total_sizes = lambda { |sized_formulae, debug: false| total_download_size = 0