fade out sys.path II

This commit is contained in:
2021-06-01 14:02:06 +02:00
parent f18830c894
commit d007ea6bf7

View File

@@ -29,7 +29,6 @@ def parse_pkgbuild(pkgbuild_file: str) -> dict:
pkgbuild_path = pathlib.Path(pkgbuild_file)
os.chdir(pkgbuild_path.parent)
res = subprocess.run(["makepkg", "--printsrcinfo"], check=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
os.chdir(sys.path[0])
if res.returncode:
logging.warning("[PKGBUILD/%s] makepkg failed: %s", pkgbuild_path.name, res.stdout.decode(errors="ignore"))