aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2016-01-15 20:48:12 +0800
committerXu Cheng2016-01-17 14:52:09 +0800
commit176f345386b0f9d50d7bbc0e0879056dc00119ad (patch)
tree0ccdd01b4fba4fc33e079e4a500eb0308f873c20 /Library
parentcb3379fcfad6cf8ac6a8fa19024951240d4c75b3 (diff)
downloadbrew-176f345386b0f9d50d7bbc0e0879056dc00119ad.tar.bz2
test-bot: prevent formula building from source multiple times
After formula updates its bottle block, remove itself from changed formulae list. Therefore, if it's requested next time as dependency, it will be installed from bottle just created. Closes Homebrew/homebrew#48121. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index f5fd15b9c..5e9351aaf 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -561,6 +561,7 @@ module Homebrew
test "brew", "bottle", *bottle_merge_args
test "brew", "uninstall", "--force", formula_name
FileUtils.ln bottle_filename, HOMEBREW_CACHE/bottle_filename, :force => true
+ @formulae.delete(formula_name)
if unchanged_build_dependencies.any?
test "brew", "uninstall", "--force", *unchanged_build_dependencies
unchanged_dependencies -= unchanged_build_dependencies