aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-07-12 22:43:35 -0500
committerJack Nagel2014-07-12 22:43:35 -0500
commita71e18d4d77333236bac525f47084e809de32b0c (patch)
tree574607dbf40912cb99224a9b4d8bc5a76058a9bd /Library/Homebrew/cmd
parent64bd49c7f5517be546d5d43a7a54be4a5ada58a8 (diff)
downloadhomebrew-a71e18d4d77333236bac525f47084e809de32b0c.tar.bz2
Compare cellar and prefix against constants
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 316e5b43f..ee965fba2 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -12,12 +12,12 @@ BOTTLE_ERB = <<-EOS
<% if root_url != BottleSpecification::DEFAULT_ROOT_URL %>
root_url "<%= root_url %>"
<% end %>
- <% if prefix.to_s != "/usr/local" %>
+ <% if prefix != BottleSpecification::DEFAULT_PREFIX %>
prefix "<%= prefix %>"
<% end %>
<% if cellar.is_a? Symbol %>
cellar :<%= cellar %>
- <% elsif cellar.to_s != "/usr/local/Cellar" %>
+ <% elsif cellar != BottleSpecification::DEFAULT_CELLAR %>
cellar "<%= cellar %>"
<% end %>
<% if revision > 0 %>
@@ -186,8 +186,8 @@ module Homebrew
bottle = BottleSpecification.new
bottle.root_url(root_url) if root_url
- bottle.prefix HOMEBREW_PREFIX
- bottle.cellar relocatable ? :any : HOMEBREW_CELLAR
+ bottle.prefix HOMEBREW_PREFIX.to_s
+ bottle.cellar relocatable ? :any : HOMEBREW_CELLAR.to_s
bottle.revision bottle_revision
bottle.sha1 bottle_path.sha1 => bottle_tag