From 25e6c6f120782cfa1dfb8223dbcd3bd279978a9c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 20 May 2014 22:50:13 -0500 Subject: [PATCH] Don't try to lock the same formula more than once Fixes Homebrew/homebrew#28765. --- Library/Homebrew/formula_installer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 21c3115d26..28061442e7 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -704,6 +704,7 @@ class FormulaInstaller @@locked << dep.to_formula end unless ignore_deps? @@locked.unshift(f) + @@locked.uniq! @@locked.each(&:lock) @hold_locks = true end