diff options
| author | Jack Nagel | 2014-07-16 23:19:58 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-07-16 23:22:04 -0500 | 
| commit | 4295e76d3ff707ea8f7dd1af7b2907faa10fc61c (patch) | |
| tree | 5c868954c77f0e9aed9a8be86c818e26ca6532f2 /Library/Homebrew/download_strategy.rb | |
| parent | 28f0e5c4fd146383686f6d552bcdcdd0c47e54aa (diff) | |
| download | brew-4295e76d3ff707ea8f7dd1af7b2907faa10fc61c.tar.bz2 | |
Remove more dead code
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 0a025da1b..859e09d40 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -43,7 +43,7 @@ class VCSDownloadStrategy < AbstractDownloadStrategy    def initialize name, resource      super      @ref_type, @ref = extract_ref(resource.specs) -    @clone = HOMEBREW_CACHE/cache_filename +    @clone = HOMEBREW_CACHE.join(cache_filename)    end    def extract_ref(specs) @@ -51,8 +51,8 @@ class VCSDownloadStrategy < AbstractDownloadStrategy      return key, specs[key]    end -  def cache_filename(tag=cache_tag) -    "#{name}--#{tag}" +  def cache_filename +    "#{name}--#{cache_tag}"    end    def cache_tag @@ -634,7 +634,7 @@ class CVSDownloadStrategy < VCSDownloadStrategy      unless @clone.exist?        HOMEBREW_CACHE.cd do          safe_system cvspath, '-d', url, 'login' -        safe_system cvspath, '-d', url, 'checkout', '-d', cache_filename("cvs"), mod +        safe_system cvspath, '-d', url, 'checkout', '-d', cache_filename, mod        end      else        puts "Updating #{@clone}"  | 
