Sort cleanup of installed formulae.

This commit is contained in:
Markus Reiter 2018-08-11 17:23:46 +02:00
parent f83314164c
commit b161ffb20c

View File

@ -148,12 +148,12 @@ module Homebrew
def clean! def clean!
if args.empty? if args.empty?
Formula.installed.each do |formula| cleanup_lockfiles
Formula.installed.sort_by(&:name).each do |formula|
cleanup_formula(formula) cleanup_formula(formula)
end end
cleanup_cache cleanup_cache
cleanup_logs cleanup_logs
cleanup_lockfiles
return if dry_run? return if dry_run?
rm_ds_store rm_ds_store
else else