diff options
| author | Jack Nagel | 2014-03-13 11:29:48 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-13 11:29:48 -0500 |
| commit | db08d3017ccdd1a9d6eb1b41d3f87ebd91cbcc3b (patch) | |
| tree | 623f2c4528234dbd81de7e99246126ba771c6d4d /Library/Contributions/cmd | |
| parent | 088c1b550a50a9af6f668025ebe1beb054192c2e (diff) | |
| download | brew-db08d3017ccdd1a9d6eb1b41d3f87ebd91cbcc3b.tar.bz2 | |
brew-unpack: don't chdir further than a normal install would
If we want to generate usable patches from inside the unpacked source,
then we should start from the same directory that a normal install
would start from.
Diffstat (limited to 'Library/Contributions/cmd')
| -rwxr-xr-x | Library/Contributions/cmd/brew-unpack.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Contributions/cmd/brew-unpack.rb b/Library/Contributions/cmd/brew-unpack.rb index 24cfbd419..c1ca26474 100755 --- a/Library/Contributions/cmd/brew-unpack.rb +++ b/Library/Contributions/cmd/brew-unpack.rb @@ -81,11 +81,7 @@ module Homebrew extend self oh1 "Unpacking #{f.name} to: #{stage_dir}" ENV['VERBOSE'] = '1' # show messages about tar - f.brew do - entries = Dir['*'] - cd entries.first if entries.length == 1 && File.directory?(entries.first) - cp_r getwd, stage_dir - end + f.brew { cp_r getwd, stage_dir } ENV['VERBOSE'] = nil if ARGV.switch? 'g' |
