Check pkg sources in chroot
This commit is contained in:
parent
7e8a57c10c
commit
8891a80087
1 changed files with 9 additions and 4 deletions
13
update.py
13
update.py
|
@ -1026,14 +1026,19 @@ def update_pkg_list(
|
|||
subprocess.run(
|
||||
(
|
||||
"/usr/bin/env",
|
||||
"makepkg",
|
||||
"--verifysource"
|
||||
"arch-nspawn",
|
||||
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,
|
||||
cwd=pkgdir,
|
||||
)
|
||||
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"
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue