mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Revert "patchinstall.py: Use --git-dir instead of -C."
This reverts commit cf29ed121d
.
This doesn't quite do what I thought it did, and breaks the intended setup.
This commit is contained in:
parent
cf29ed121d
commit
cd4d265f07
@ -76,17 +76,16 @@ def parse_def_file(name, path):
|
||||
return deps
|
||||
|
||||
def apply_patch(patch):
|
||||
gitdir = os.path.join(winedir,'.git')
|
||||
if backend == 'git-am':
|
||||
return run(['git','--git-dir',gitdir,'am',patch])
|
||||
return run(['git','-C',winedir,'am',patch])
|
||||
elif backend == 'git-am-C1':
|
||||
return run(['git','--git-dir',gitdir,'am','-C1',patch])
|
||||
return run(['git','-C',winedir,'am','-C1',patch])
|
||||
elif backend == 'patch':
|
||||
with open(patch) as f:
|
||||
print(patchdir+'/gitapply.sh -d', winedir, '<', patch)
|
||||
return subprocess.call([patchdir+'/gitapply.sh','-d',winedir],stdin=f)
|
||||
elif backend == 'git-apply':
|
||||
return run(['git','--git-dir',gitdir,'apply','--index',patch])
|
||||
return run(['git','-C',winedir,'apply','--index',patch])
|
||||
|
||||
def run_autoconf(patch):
|
||||
if not force_autoconf: return
|
||||
@ -108,8 +107,7 @@ def run_autoconf(patch):
|
||||
if need_make_requests:
|
||||
run(['./tools/make_requests'], cwd=winedir)
|
||||
if need_autoreconf or need_make_requests:
|
||||
gitdir = os.path.join(winedir,'.git')
|
||||
run(['git','--git-dir',gitdir,'commit','-a','--amend','--no-edit'])
|
||||
run(['git','-C',winedir,'commit','-a','--amend','--no-edit'])
|
||||
|
||||
def add_patch_data(patch):
|
||||
global patch_data
|
||||
|
Loading…
Reference in New Issue
Block a user