Check pkg sources in chroot

This commit is contained in:
Stephen Seo 2023-03-17 16:09:20 +09:00
parent 7e8a57c10c
commit 8891a80087

View file

@ -1026,14 +1026,19 @@ def update_pkg_list(
subprocess.run( subprocess.run(
( (
"/usr/bin/env", "/usr/bin/env",
"makepkg", "arch-nspawn",
"--verifysource" os.path.join(other_state["chroot"], os.environ["USER"]),
f"--bind={pkgdir}:/source",
f"--bind={other_state['gpg_home']}:/build/.gnupg",
"--chdir=/source",
"--user=builduser",
"/usr/bin/makepkg",
"--verifysource",
), ),
check=True, check=True,
cwd=pkgdir,
) )
except: except:
log_print(f"ERROR: Failed to verify pkg \"{pkg}\"") log_print(f'ERROR: Failed to verify pkg "{pkg}"')
pkg_state[pkg]["build_status"] = "fail" pkg_state[pkg]["build_status"] = "fail"
continue continue