diff options
Diffstat (limited to 'packages/linux-kernel/build-jool.py')
-rwxr-xr-x | packages/linux-kernel/build-jool.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/linux-kernel/build-jool.py b/packages/linux-kernel/build-jool.py index 5474e60..5f26c3b 100755 --- a/packages/linux-kernel/build-jool.py +++ b/packages/linux-kernel/build-jool.py @@ -6,9 +6,8 @@ from pathlib import Path from subprocess import run def find_arch() -> str: - import os - arch = os.system("dpkg-architecture -q DEB_HOST_ARCH").strip() - return arch + tmp=run(['dpkg-architecture', '-q', 'DEB_HOST_ARCH'], capture_output=True) + return tmp.stdout.decode().strip() # dependency modifier def add_depends(package_dir: str, package_name: str, |