aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-05-20 22:50:13 -0500
committerJack Nagel2014-05-20 22:50:21 -0500
commit25e6c6f120782cfa1dfb8223dbcd3bd279978a9c (patch)
tree169dae377ada2855f1e14cfa62edc4707478c2a4
parentad7adcee972bab29fae8f35e41b283f3a7252e16 (diff)
downloadbrew-25e6c6f120782cfa1dfb8223dbcd3bd279978a9c.tar.bz2
Don't try to lock the same formula more than once
Fixes Homebrew/homebrew#28765.
-rw-r--r--Library/Homebrew/formula_installer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 21c3115d2..28061442e 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