From 55fabe36e0b6a27116e76405f3e8c23139dc6149 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 16 Oct 2012 00:53:15 -0500 Subject: 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 --- Library/Contributions/cmds/brew-unpack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3