aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/pull.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-10-31 20:17:15 -0700
committerMike McQuaid2015-10-31 23:45:11 -0700
commit18b2d0150e039a13437cc27eeeada8c529fa0d18 (patch)
tree2a0077ee672f6ef80a990551e9b5cd6b6b879063 /Library/Homebrew/cmd/pull.rb
parent4a9960bee72e3a54b110c6b51676fd0f9275845d (diff)
downloadbrew-18b2d0150e039a13437cc27eeeada8c529fa0d18.tar.bz2
pull: handle unneeded and disabled bottles.
Closes Homebrew/homebrew#45563. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd/pull.rb')
-rw-r--r--Library/Homebrew/cmd/pull.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index bbcfd1615..a4ad05f39 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -128,8 +128,17 @@ module Homebrew
end
end
- unless ARGV.include? "--bottle"
- changed_formulae.each do |f|
+ fetch_bottles = false
+ changed_formulae.each do |f|
+ if ARGV.include? "--bottle"
+ if f.bottle
+ fetch_bottles = true
+ elsif f.bottle_disabled?
+ ohai "#{f}: skipping disabled bottle: #{f.bottle_disable_reason}"
+ elsif f.bottle_unneeded?
+ ohai "#{f}: skipping unneeded bottle."
+ end
+ else
next unless f.bottle
opoo "#{f.full_name} has a bottle: do you need to update it with --bottle?"
end
@@ -155,8 +164,7 @@ module Homebrew
end
end
- if ARGV.include? "--bottle"
-
+ if fetch_bottles
bottle_commit_url = if testing_job
bottle_branch = "testing-bottle-#{testing_job}"
url