Fixes Homebrew/homebrew#7114; Cache confuses --HEAD and non--HEAD svn installs

Signed-off-by: Max Howell <max@methylblue.com>
This commit is contained in:
Dave Bayer 2011-08-20 14:39:32 -07:00 committed by Max Howell
parent ca45147219
commit 4743bc96e2

View File

@ -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