From c28c3cb8973f4882df24013f1ac7f7a51b587875 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 #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 f8e66001f7e9..86c3680ad1a1 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -416,7 +416,7 @@ def fetch 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|