From b161ffb20ce7e8ed9ff8c6cfcd05a09d951f0d31 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 11 Aug 2018 17:23:46 +0200 Subject: [PATCH] Sort cleanup of installed formulae. --- Library/Homebrew/cleanup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb index 67bfc28911..3629630231 100644 --- a/Library/Homebrew/cleanup.rb +++ b/Library/Homebrew/cleanup.rb @@ -148,12 +148,12 @@ module Homebrew def clean! if args.empty? - Formula.installed.each do |formula| + cleanup_lockfiles + Formula.installed.sort_by(&:name).each do |formula| cleanup_formula(formula) end cleanup_cache cleanup_logs - cleanup_lockfiles return if dry_run? rm_ds_store else