Remove unnecessary use of Dir[]
This commit is contained in:
parent
d0e2d126a1
commit
6648f976fb
@ -672,7 +672,7 @@ class CVSDownloadStrategy < VCSDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
def stage
|
def stage
|
||||||
cp_r Dir[cached_location+"{.}"], Dir.pwd
|
cp_r File.join(cached_location, "."), Dir.pwd
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
@ -751,7 +751,7 @@ class BazaarDownloadStrategy < VCSDownloadStrategy
|
|||||||
def stage
|
def stage
|
||||||
# The export command doesn't work on checkouts
|
# The export command doesn't work on checkouts
|
||||||
# See https://bugs.launchpad.net/bzr/+bug/897511
|
# 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"
|
rm_r ".bzr"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user