diff options
| author | Jack Nagel | 2015-02-14 15:28:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-14 15:28:40 -0500 |
| commit | 6648f976fbd96772b3664774a543a9d124eb1699 (patch) | |
| tree | 9f8c0a0559576ab8629e31d8dc25d47b647cd455 /Library | |
| parent | d0e2d126a1969c6cf3d975576108a8da2c618254 (diff) | |
| download | brew-6648f976fbd96772b3664774a543a9d124eb1699.tar.bz2 | |
Remove unnecessary use of Dir[]
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 70338d37e..40f0504a0 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -672,7 +672,7 @@ class CVSDownloadStrategy < VCSDownloadStrategy end def stage - cp_r Dir[cached_location+"{.}"], Dir.pwd + cp_r File.join(cached_location, "."), Dir.pwd end private @@ -751,7 +751,7 @@ class BazaarDownloadStrategy < VCSDownloadStrategy def stage # The export command doesn't work on checkouts # See https://bugs.launchpad.net/bzr/+bug/897511 - cp_r Dir[cached_location+"{.}"], Dir.pwd + cp_r File.join(cached_location, "."), Dir.pwd rm_r ".bzr" end |
