pmb.build.backend.run_abuild: remove cross default

This function doesn't handle the case of being called without a value
set for cross (it does not autodetect it) and callers don't expect that.
So unset the default value.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2568
This commit is contained in:
Oliver Smith 2025-03-14 18:35:11 +01:00
parent b2eb812254
commit 0625ece550
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 2 additions and 2 deletions

View file

@ -714,9 +714,9 @@ def packages(
pkg["pkgver"], pkg["pkgver"],
channel, channel,
pkg_arch, pkg_arch,
cross,
strict, strict,
force, force,
cross,
hostchroot, hostchroot,
src, src,
bootstrap_stage, bootstrap_stage,

View file

@ -190,9 +190,9 @@ def run_abuild(
pkgver: str, pkgver: str,
channel: str, channel: str,
arch: Arch, arch: Arch,
cross: CrossCompileType,
strict: bool = False, strict: bool = False,
force: bool = False, force: bool = False,
cross: CrossCompileType = None,
hostchroot: Chroot = Chroot.native(), hostchroot: Chroot = Chroot.native(),
src: str | None = None, src: str | None = None,
bootstrap_stage: int = BootstrapStage.NONE, bootstrap_stage: int = BootstrapStage.NONE,