[fix][aur] not able to install packages based on other packages | other fixes

This commit is contained in:
Vinícius Moreira
2020-01-22 17:07:28 -03:00
parent 21a104bd6e
commit ffa7611930
6 changed files with 80 additions and 39 deletions

View File

@@ -2,13 +2,17 @@ import os
import re
from typing import Tuple
from bauh.commons.system import SimpleProcess, ProcessHandler
from bauh.commons.system import SimpleProcess, ProcessHandler, run_cmd
from bauh.gems.arch import CUSTOM_MAKEPKG_FILE
RE_DEPS_PATTERN = re.compile(r'\n?\s+->\s(.+)\n')
RE_UNKNOWN_GPG_KEY = re.compile(r'\(unknown public key (\w+)\)')
def gen_srcinfo(build_dir: str) -> str:
return run_cmd('makepkg --printsrcinfo', cwd=build_dir)
def check(pkgdir: str, optimize: bool, handler: ProcessHandler) -> dict:
res = {}