Don't try to lock the same formula more than once

Fixes Homebrew/homebrew#28765.
This commit is contained in:
Jack Nagel 2014-05-20 22:50:13 -05:00
parent ad7adcee97
commit 25e6c6f120

View File

@ -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