fade out sys.path II
This commit is contained in:
1
utils.py
1
utils.py
@@ -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"))
|
||||
|
Reference in New Issue
Block a user