From e08ec21abea3f8b9da948529b7d8dda2c42c4cb2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 12 Nov 2013 11:29:50 +0000 Subject: bottle: always use HOMEBREW_REPOSITORY. --- Library/Homebrew/cmd/bottle.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 69ae64000..528fd9f95 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -195,11 +195,7 @@ module Homebrew extend self if ARGV.include? '--write' f = Formula.factory formula_name 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 - end + formula_path = HOMEBREW_REPOSITORY+formula_relative_path has_bottle_block = f.class.send(:bottle).checksums.any? inreplace formula_path do |s| if has_bottle_block -- cgit v1.2.3