summaryrefslogtreecommitdiff
path: root/packages/linux-kernel/build-jool.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-25 20:01:49 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-25 20:02:42 +0200
commit28e63c2dcaf1b64aeb7928d29ca5b541413cf8f8 (patch)
tree92e027f5e22c6a35092b64c80cc307c222d63781 /packages/linux-kernel/build-jool.py
parent6bafde7f8a90c9d66d2b71bf397dd7a84a83a8e6 (diff)
downloadvyos-build-28e63c2dcaf1b64aeb7928d29ca5b541413cf8f8.tar.gz
vyos-build-28e63c2dcaf1b64aeb7928d29ca5b541413cf8f8.zip
jool: T5499: fix AttributeError: 'int' object has no attribute 'strip'
This fixes an error introduced by commit 3d5445d8f7c0 ("T5499: arm64: build jool with correct depends").
Diffstat (limited to 'packages/linux-kernel/build-jool.py')
-rwxr-xr-xpackages/linux-kernel/build-jool.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/linux-kernel/build-jool.py b/packages/linux-kernel/build-jool.py
index 5474e601..5f26c3b4 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,