mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
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:
parent
6bafde7f8a
commit
28e63c2dca
1
packages/linux-kernel/.gitignore
vendored
1
packages/linux-kernel/.gitignore
vendored
@ -5,6 +5,7 @@
|
|||||||
/intel-qat
|
/intel-qat
|
||||||
/linux-firmware
|
/linux-firmware
|
||||||
/ovpn-dco
|
/ovpn-dco
|
||||||
|
/jool*
|
||||||
/qat*
|
/qat*
|
||||||
/QAT*
|
/QAT*
|
||||||
*.tar.xz
|
*.tar.xz
|
||||||
|
|||||||
@ -6,9 +6,8 @@ from pathlib import Path
|
|||||||
from subprocess import run
|
from subprocess import run
|
||||||
|
|
||||||
def find_arch() -> str:
|
def find_arch() -> str:
|
||||||
import os
|
tmp=run(['dpkg-architecture', '-q', 'DEB_HOST_ARCH'], capture_output=True)
|
||||||
arch = os.system("dpkg-architecture -q DEB_HOST_ARCH").strip()
|
return tmp.stdout.decode().strip()
|
||||||
return arch
|
|
||||||
|
|
||||||
# dependency modifier
|
# dependency modifier
|
||||||
def add_depends(package_dir: str, package_name: str,
|
def add_depends(package_dir: str, package_name: str,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user