aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb27
1 files changed, 16 insertions, 11 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index a3996909e..58221c28f 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -498,17 +498,22 @@ class BazaarDownloadStrategy < AbstractDownloadStrategy
end
def stage
- dst=Dir.getwd
- Dir.chdir @clone do
- if @spec and @ref
- ohai "Checking out #{@spec} #{@ref}"
- Dir.chdir @clone do
- safe_system 'bzr', 'export', '-r', @ref, dst
- end
- else
- safe_system 'bzr', 'export', dst
- end
- end
+ # FIXME: The export command doesn't work on checkouts
+ # See https://bugs.launchpad.net/bzr/+bug/897511
+ FileUtils.cp_r Dir[@clone+"{.}"], Dir.pwd
+ FileUtils.rm_r Dir[Dir.pwd+"/.bzr"]
+
+ #dst=Dir.getwd
+ #Dir.chdir @clone do
+ # if @spec and @ref
+ # ohai "Checking out #{@spec} #{@ref}"
+ # Dir.chdir @clone do
+ # safe_system 'bzr', 'export', '-r', @ref, dst
+ # end
+ # else
+ # safe_system 'bzr', 'export', dst
+ # end
+ #end
end
end