diff options
| author | Xiyue Deng | 2013-04-16 02:18:26 -0700 |
|---|---|---|
| committer | Jack Nagel | 2013-04-16 16:17:48 -0500 |
| commit | 869642e635e8fd26024f173475cd8ace81970197 (patch) | |
| tree | 84279cfe79ada06d26499fec50e601d737911225 /Library | |
| parent | b7c0c53ffc09eb5192c86e4c064771430e2188b5 (diff) | |
| download | brew-869642e635e8fd26024f173475cd8ace81970197.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 Homebrew/homebrew#19233.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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 |
