diff options
| author | Mike McQuaid | 2016-09-13 09:20:06 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-13 09:20:06 +0100 |
| commit | e10234f61a990d9bf5dab26e64f3a27310dea67b (patch) | |
| tree | a708089d745119c1e664acb7d1e02c1e6fd530ff /Library/Homebrew/dev-cmd/bottle.rb | |
| parent | 5a264cf59733fa8e0f69f8e6567e069a8cfd8bde (diff) | |
| parent | 0316830d4fbd9467a0c0f82867ffcc91b9385cb2 (diff) | |
| download | brew-e10234f61a990d9bf5dab26e64f3a27310dea67b.tar.bz2 | |
Merge pull request #949 from MikeMcQuaid/testbottest
test-bot: default to building testbottest.
Diffstat (limited to 'Library/Homebrew/dev-cmd/bottle.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bottle.rb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 4b25b3842..1a7da8eb9 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -1,4 +1,4 @@ -#: * `bottle` [`--verbose`] [`--no-rebuild`] [`--keep-old`] [`--skip-relocation`] [`--root-url=<root_url>`]: +#: * `bottle` [`--verbose`] [`--no-rebuild`] [`--keep-old`] [`--skip-relocation`] [`--root-url=<root_url>`] [`--force-core-tap`]: #: * `bottle` `--merge` [`--no-commit`] [`--keep-old`] [`--write`]: #: #: Generate a bottle (binary package) from a formula installed with @@ -134,8 +134,14 @@ module Homebrew return ofail "Formula not installed or up-to-date: #{f.full_name}" end - unless f.tap - return ofail "Formula not from core or any taps: #{f.full_name}" + tap = f.tap + + unless tap + if ARGV.include?("--force-core-tap") + tap = CoreTap.instance + else + return ofail "Formula not from core or any taps: #{f.full_name}" + end end if f.bottle_disabled? @@ -152,7 +158,7 @@ module Homebrew return ofail "Formula has no stable version: #{f.full_name}" end - if ARGV.include? "--no-rebuild" + if ARGV.include?("--no-rebuild") || !f.tap rebuild = 0 elsif ARGV.include? "--keep-old" rebuild = f.bottle_specification.rebuild @@ -270,7 +276,7 @@ module Homebrew root_url ||= ARGV.value("root_url") bottle = BottleSpecification.new - bottle.tap = f.tap + bottle.tap = tap bottle.root_url(root_url) if root_url if relocatable if skip_relocation @@ -334,7 +340,7 @@ module Homebrew }, "bintray" => { "package" => Utils::Bottles::Bintray.package(f.name), - "repository" => Utils::Bottles::Bintray.repository(f.tap), + "repository" => Utils::Bottles::Bintray.repository(tap), }, }, } |
