aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Bayer2011-08-20 14:39:32 -0700
committerMax Howell2011-09-01 14:01:41 +0100
commit7fe2ee83820a9d8dc2bb51e2c3a00a94d57c9772 (patch)
tree2fcc851d44c246792cab436cd7c3f5e1a09ecaa8
parent381c97f9f4bb030fdc60f3828a4fd8f62189ad9a (diff)
downloadhomebrew-7fe2ee83820a9d8dc2bb51e2c3a00a94d57c9772.tar.bz2
Fixes #7114; Cache confuses --HEAD and non--HEAD svn installs
Signed-off-by: Max Howell <max@methylblue.com>
-rw-r--r--Library/Homebrew/download_strategy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index a265e0b35..17b72efd3 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -195,6 +195,7 @@ class SubversionDownloadStrategy <AbstractDownloadStrategy
def initialize url, name, version, specs
super
@unique_token="#{name}--svn" unless name.to_s.empty? or name == '__UNKNOWN__'
+ @unique_token += "--HEAD" if ARGV.include? '--HEAD'
@co=HOMEBREW_CACHE+@unique_token
end