Merge pull request #7034 from MikeMcQuaid/upgrade-no-reinstall-dry-run
cmd/upgrade, reinstall: don't install on dry-run.
This commit is contained in:
commit
23ab620cd4
@ -326,6 +326,8 @@ module Homebrew
|
|||||||
.join(", ")
|
.join(", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return if args.dry_run?
|
||||||
|
|
||||||
reinstallable_broken_dependents.each do |f|
|
reinstallable_broken_dependents.each do |f|
|
||||||
reinstall_formula(f, build_from_source: true)
|
reinstall_formula(f, build_from_source: true)
|
||||||
rescue FormulaInstallationAlreadyAttemptedError
|
rescue FormulaInstallationAlreadyAttemptedError
|
||||||
|
|||||||
@ -8,6 +8,8 @@ module Homebrew
|
|||||||
module_function
|
module_function
|
||||||
|
|
||||||
def reinstall_formula(f, build_from_source: false)
|
def reinstall_formula(f, build_from_source: false)
|
||||||
|
return if args.dry_run?
|
||||||
|
|
||||||
if f.opt_prefix.directory?
|
if f.opt_prefix.directory?
|
||||||
keg = Keg.new(f.opt_prefix.resolved_path)
|
keg = Keg.new(f.opt_prefix.resolved_path)
|
||||||
tab = Tab.for_keg(keg)
|
tab = Tab.for_keg(keg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user