build: shorter build paths
see https://github.com/msys2/msys2-autobuild/issues/71
This commit is contained in:
parent
f3bf1b80b0
commit
cc301e1e62
@ -243,7 +243,12 @@ def build_package(build_type: BuildType, pkg: Package, msys2_root: PathLike, bui
|
|||||||
repo = get_repo(build_type)
|
repo = get_repo(build_type)
|
||||||
|
|
||||||
with fresh_git_repo(pkg['repo_url'], repo_dir):
|
with fresh_git_repo(pkg['repo_url'], repo_dir):
|
||||||
pkg_dir = os.path.join(repo_dir, pkg['repo_path'])
|
orig_pkg_dir = os.path.join(repo_dir, pkg['repo_path'])
|
||||||
|
# Rename it to get a shorter overall build path
|
||||||
|
# https://github.com/msys2/msys2-autobuild/issues/71
|
||||||
|
pkg_dir = os.path.join(repo_dir, 'B')
|
||||||
|
assert not os.path.exists(pkg_dir)
|
||||||
|
os.rename(orig_pkg_dir, pkg_dir)
|
||||||
|
|
||||||
# Fetch all keys mentioned in the PKGBUILD
|
# Fetch all keys mentioned in the PKGBUILD
|
||||||
validpgpkeys = to_pure_posix_path(os.path.join(SCRIPT_DIR, 'fetch-validpgpkeys.sh'))
|
validpgpkeys = to_pure_posix_path(os.path.join(SCRIPT_DIR, 'fetch-validpgpkeys.sh'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user