diff --git a/pmb/build/_package.py b/pmb/build/_package.py index b1e8077e..3a9b74e9 100644 --- a/pmb/build/_package.py +++ b/pmb/build/_package.py @@ -351,7 +351,7 @@ def run_abuild(args, apkbuild, arch, strict=False, force=False, cross=None, env["DISTCC_HOSTS"] = "127.0.0.1:" + args.port_distccd # Build the abuild command - cmd = ["abuild", "-D" "postmarketOS"] + cmd = ["abuild", "-D", "postmarketOS"] if strict: cmd += ["-r"] # install depends with abuild else: diff --git a/test/test_build_package.py b/test/test_build_package.py index 0f65e438..07444a99 100644 --- a/test/test_build_package.py +++ b/test/test_build_package.py @@ -230,11 +230,11 @@ def test_run_abuild(args, monkeypatch): # Normal run output = "armhf/test-1-r2.apk" env = {"CARCH": "armhf", "SUDO_APK": "abuild-apk --no-progress"} - cmd = ["abuild", "-d"] + cmd = ["abuild", "-D", "postmarketOS", "-d"] assert func(args, apkbuild, "armhf") == (output, cmd, env) # Force and strict - cmd = ["abuild", "-r", "-f"] + cmd = ["abuild", "-D", "postmarketOS", "-r", "-f"] assert func(args, apkbuild, "armhf", True, True) == (output, cmd, env) # cross=native @@ -242,7 +242,7 @@ def test_run_abuild(args, monkeypatch): "SUDO_APK": "abuild-apk --no-progress", "CROSS_COMPILE": "armv6-alpine-linux-muslgnueabihf-", "CC": "armv6-alpine-linux-muslgnueabihf-gcc"} - cmd = ["abuild", "-d"] + cmd = ["abuild", "-D", "postmarketOS", "-d"] assert func(args, apkbuild, "armhf", cross="native") == (output, cmd, env) # cross=distcc