Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
CVSDownloadStrategy: correctly stage all files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ColinHebert authored and jacknagel committed Feb 2, 2012
1 parent d257523 commit c28c3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/download_strategy.rb
Expand Up @@ -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|
Expand Down

0 comments on commit c28c3cb

Please sign in to comment.