Skip to content

Commit

Permalink
Merge pull request #316 from Homebrew/revert-315-revert-314-bottle_su…
Browse files Browse the repository at this point in the history
…do_purge

test: set HOMEBREW_BOTTLE_SUDO_PURGE.
  • Loading branch information
MikeMcQuaid authored Jan 17, 2020
2 parents 3079f91 + 9bf9fc6 commit 2ba09b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ def bottle_reinstall_formula(formula, new_formula)
return if ARGV.include?("--no-bottle")
return if formula.bottle_disabled?

if MacOS.version >= :catalina
ENV["HOMEBREW_BOTTLE_SUDO_PURGE"] = "1"
end
root_url = ARGV.value("root-url")
bottle_args = ["--verbose", "--json", formula.name]
bottle_args << "--keep-old" if ARGV.include?("--keep-old") && !new_formula
Expand Down

0 comments on commit 2ba09b3

Please sign in to comment.