bottle: always use HOMEBREW_REPOSITORY.
This commit is contained in:
parent
83cbb1e3fb
commit
e08ec21abe
@ -195,11 +195,7 @@ module Homebrew extend self
|
|||||||
if ARGV.include? '--write'
|
if ARGV.include? '--write'
|
||||||
f = Formula.factory formula_name
|
f = Formula.factory formula_name
|
||||||
formula_relative_path = "Library/Formula/#{f.name}.rb"
|
formula_relative_path = "Library/Formula/#{f.name}.rb"
|
||||||
if File.exists? formula_relative_path
|
|
||||||
formula_path = Pathname.new(formula_relative_path)
|
|
||||||
else
|
|
||||||
formula_path = HOMEBREW_REPOSITORY+formula_relative_path
|
formula_path = HOMEBREW_REPOSITORY+formula_relative_path
|
||||||
end
|
|
||||||
has_bottle_block = f.class.send(:bottle).checksums.any?
|
has_bottle_block = f.class.send(:bottle).checksums.any?
|
||||||
inreplace formula_path do |s|
|
inreplace formula_path do |s|
|
||||||
if has_bottle_block
|
if has_bottle_block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user