aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-10-16 00:53:15 -0500
committerJack Nagel2012-10-16 00:56:55 -0500
commit55fabe36e0b6a27116e76405f3e8c23139dc6149 (patch)
treec239b57c292e0475bce4a7f300bd8a911a6705ab /Library
parent73b7c52673d707a4df38b96c22c9fda0cbab786d (diff)
downloadbrew-55fabe36e0b6a27116e76405f3e8c23139dc6149.tar.bz2
brew-unpack: don't attempt to mv the build directory
When the current working directory is the root of the build tree, copy it instead of moving it, otherwise an exception will be raised when we try to clean up the build tree later. Noticed when unpacking the vim source tree from a mercurial checkout. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmds/brew-unpack.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmds/brew-unpack.rb b/Library/Contributions/cmds/brew-unpack.rb
index 86bab4eb5..eb00d2fff 100755
--- a/Library/Contributions/cmds/brew-unpack.rb
+++ b/Library/Contributions/cmds/brew-unpack.rb
@@ -90,7 +90,7 @@ changes.
ENV['VERBOSE'] = '1' # show messages about tar
f.brew do
cd Dir['*'][0] if Dir['*'].one?
- mv getwd, stage_dir
+ cp_r getwd, stage_dir
end
ENV['VERBOSE'] = nil