Fetch pgp keys before upgrading packages
To avoid any ABI bump breaking pgp
This commit is contained in:
parent
84315e8e56
commit
745e5e2c40
@ -532,15 +532,15 @@ def build_package(build_type: BuildType, pkg: Package, msys2_root: _PathLike, bu
|
||||
|
||||
repo = get_main_repo()
|
||||
|
||||
with staging_dependencies(build_type, pkg, msys2_root, builddir), \
|
||||
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'])
|
||||
|
||||
try:
|
||||
# Fetch all keys mentioned in the PKGBUILD
|
||||
validpgpkeys = to_pure_posix_path(os.path.join(SCRIPT_DIR, 'fetch-validpgpkeys.sh'))
|
||||
run_cmd(msys2_root, ['bash', validpgpkeys], cwd=pkg_dir)
|
||||
|
||||
with staging_dependencies(build_type, pkg, msys2_root, builddir):
|
||||
try:
|
||||
env = get_build_environ()
|
||||
if build_type == "mingw-src":
|
||||
env['MINGW_ARCH'] = Config.MINGW_SRC_ARCH
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user