From 0a018deb93bdc172d9aef90b986e14d59e5305d4 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 6 Jul 2010 08:29:02 -0700 Subject: Don't version VCS checkout directories. While tarballs are versioned to prevent conflicts when newer ones are downloaded, we shouldn't be versioning the name of the VCS checkout when a formula uses "HEAD" or a stable commit. Append the name of the vcs system to the checkout path, in case a project changes vcs providers, to prevent future conflicts. --- Library/Homebrew/download_strategy.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 412b1cfe9..a15cea3c2 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -5,7 +5,6 @@ class AbstractDownloadStrategy @spec = specs.keys.first # only use first spec @ref = specs.values.first end - @unique_token="#{name}-#{version}" unless name.to_s.empty? or name == '__UNKNOWN__' end def expand_safe_system_args args @@ -31,16 +30,17 @@ end class CurlDownloadStrategy