aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-11-12 11:29:50 +0000
committerMike McQuaid2013-11-12 11:29:50 +0000
commit84239b551dbbeee3a5c4b2961e3d8769c02fd7b6 (patch)
treea26e91b2328b8893d2e875b1b9ff2ff25cd8df24 /Library/Homebrew/cmd
parente5a763a3535aab8515aa20cf8b71d4bf37bff11c (diff)
downloadhomebrew-84239b551dbbeee3a5c4b2961e3d8769c02fd7b6.tar.bz2
bottle: always use HOMEBREW_REPOSITORY.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb6
1 files changed, 1 insertions, 5 deletions
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