aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Bayer2011-08-20 14:39:32 -0700
committerMax Howell2011-09-01 14:01:41 +0100
commit4743bc96e23aaa7abee5488e533fefc614120029 (patch)
treee69d1a6101a734fcaded465f118cb051bea59c04
parentca451472193cc20e52ea6b0f2b84c9459759ac35 (diff)
downloadbrew-4743bc96e23aaa7abee5488e533fefc614120029.tar.bz2
Fixes Homebrew/homebrew#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