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").
This commit is contained in:
Christian Breunig 2023-08-25 20:01:49 +02:00
parent 6bafde7f8a
commit 28e63c2dca
2 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,7 @@
/intel-qat
/linux-firmware
/ovpn-dco
/jool*
/qat*
/QAT*
*.tar.xz

View File

@ -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,