aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Hebert2011-11-29 20:33:20 +0100
committerJack Nagel2012-02-01 21:18:39 -0600
commit5cc4b1c991e86fa32d637653ace8b1e342647536 (patch)
tree102ceaf567d0f06133e16682765b9ac1f1b83baf
parent36085bd34db2a55fd8ea92fe9593ac86a2bb0bfe (diff)
downloadbrew-5cc4b1c991e86fa32d637653ace8b1e342647536.tar.bz2
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 <jacknagel@gmail.com>
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index f8e66001f..86c3680ad 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|