[aur] new AUR dependencies checking algorithm

This commit is contained in:
Vinícius Moreira
2020-02-11 14:05:16 -03:00
parent 633b60f5f4
commit 0e4ebbe277
18 changed files with 149 additions and 54 deletions

View File

@@ -13,7 +13,7 @@ def gen_srcinfo(build_dir: str) -> str:
return run_cmd('makepkg --printsrcinfo', cwd=build_dir)
def check(pkgdir: str, optimize: bool, handler: ProcessHandler) -> dict:
def check(pkgdir: str, optimize: bool, missing_deps: bool, handler: ProcessHandler) -> dict:
res = {}
cmd = ['makepkg', '-ALcf', '--check', '--noarchive', '--nobuild', '--noprepare']
@@ -27,7 +27,7 @@ def check(pkgdir: str, optimize: bool, handler: ProcessHandler) -> dict:
success, output = handler.handle_simple(SimpleProcess(cmd, cwd=pkgdir))
if 'Missing dependencies' in output:
if missing_deps and 'Missing dependencies' in output:
res['missing_deps'] = RE_DEPS_PATTERN.findall(output)
gpg_keys = RE_UNKNOWN_GPG_KEY.findall(output)