diff options
| author | Colin Hebert | 2011-11-29 20:33:20 +0100 |
|---|---|---|
| committer | Jack Nagel | 2012-02-01 21:18:39 -0600 |
| commit | c28c3cb8973f4882df24013f1ac7f7a51b587875 (patch) | |
| tree | 592562f8f42d8c5224f364340b4c9b60fdc28d1f /Library | |
| parent | d2575232ae4e7ed3f868d2aa940fd3d4893540aa (diff) | |
| download | homebrew-c28c3cb8973f4882df24013f1ac7f7a51b587875.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 #8873.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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| |
