aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXiyue Deng2013-04-16 02:18:26 -0700
committerJack Nagel2013-04-16 16:17:48 -0500
commit49424fd33af892b4717568e8e9de7ac65ca3143b (patch)
treeddaaffaacf2a09734e1ce9a31f5bdeae9b136b15 /Library
parent84b7115e5e75c32792ea6c87431686ad2126c0f2 (diff)
downloadhomebrew-49424fd33af892b4717568e8e9de7ac65ca3143b.tar.bz2
Fix download strategy for SVN HEAD
After converting to Pathname to create paths, using '+=' will result in path concatenation by '/', which result in weird path like 'gcc--svn/-HEAD'. This patch should fix this. Closes #19233. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 17931f21d..d1564f977 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -217,7 +217,7 @@ class SubversionDownloadStrategy < AbstractDownloadStrategy
@co = Pathname.new("#{HOMEBREW_CACHE}/#{name}--svn")
end
- @co += "-HEAD" if ARGV.build_head?
+ @co = Pathname.new(@co.to_s + '-HEAD') if ARGV.build_head?
end
def cached_location