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.
This commit is contained in:
parent
088c1b550a
commit
db08d3017c
@ -81,11 +81,7 @@ module Homebrew extend self
|
|||||||
|
|
||||||
oh1 "Unpacking #{f.name} to: #{stage_dir}"
|
oh1 "Unpacking #{f.name} to: #{stage_dir}"
|
||||||
ENV['VERBOSE'] = '1' # show messages about tar
|
ENV['VERBOSE'] = '1' # show messages about tar
|
||||||
f.brew do
|
f.brew { cp_r getwd, stage_dir }
|
||||||
entries = Dir['*']
|
|
||||||
cd entries.first if entries.length == 1 && File.directory?(entries.first)
|
|
||||||
cp_r getwd, stage_dir
|
|
||||||
end
|
|
||||||
ENV['VERBOSE'] = nil
|
ENV['VERBOSE'] = nil
|
||||||
|
|
||||||
if ARGV.switch? 'g'
|
if ARGV.switch? 'g'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user