improved logging
This commit is contained in:
4
utils.py
4
utils.py
@@ -32,13 +32,13 @@ def parse_pkgbuild(pkgbuild_file: str) -> dict:
|
|||||||
os.chdir(sys.path[0])
|
os.chdir(sys.path[0])
|
||||||
|
|
||||||
if res.returncode:
|
if res.returncode:
|
||||||
logging.warning("[PKGBUILD] makekg failed: %s", res.stdout.decode(errors="ignore"))
|
logging.warning("[PKGBUILD/%s] makepkg failed: %s", pkgbuild_path.name, res.stdout.decode(errors="ignore"))
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
(parsed, errors) = parse_srcinfo(res.stdout.decode(errors="ignore"))
|
(parsed, errors) = parse_srcinfo(res.stdout.decode(errors="ignore"))
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
logging.warning("[PKGBUILD] Failed to parse %s: %s", pkgbuild_path.name, errors)
|
logging.warning("[PKGBUILD/%s] Failed to parse: %s", pkgbuild_path.name, errors)
|
||||||
return {}
|
return {}
|
||||||
return parsed
|
return parsed
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user