parent
516d7e8278
commit
ac97c8545a
@ -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