From 5cc4b1c991e86fa32d637653ace8b1e342647536 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Tue, 29 Nov 2011 20:33:20 +0100 Subject: [PATCH] CVSDownloadStrategy: correctly stage all files The FileUtils.cp_r function with a wildcard doesn't copy hidden files (starting with a dot) Instead of copying everything selected by *, select all the folder content. See: http://www.ruby-doc.org/core-1.9.3/Dir.html#method-c-glob Closes Homebrew/homebrew#8873. 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 f8e66001f7..86c3680ad1 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -416,7 +416,7 @@ class CVSDownloadStrategy < AbstractDownloadStrategy end def stage - FileUtils.cp_r Dir[@co+"*"], Dir.pwd + FileUtils.cp_r Dir[@co+"{.}"], Dir.pwd require 'find' Find.find(Dir.pwd) do |path|