From 869642e635e8fd26024f173475cd8ace81970197 Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Tue, 16 Apr 2013 02:18:26 -0700 Subject: [PATCH] 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 Homebrew/homebrew#19233. Signed-off-by: Jack Nagel --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 17931f21df..d1564f9778 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