From c96da8cd37832807933f246a642f3165e9217216 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 7 Nov 2017 23:23:55 +0000 Subject: [PATCH] Fix: package gets rebuilt, even if it exists, when using default arch (#881) When not specifying an architecture for `pmbootstrap build`, and the `APKBUILD` says that it can't be built for the native arch, it gets built for the right foreign arch. `pmbootstrap` did not properly detect if packages were already built in that case, and tried to build them again. (I've noticed that while building packages for the binary repo #871.) Use any `linux-` package, that is not available for `x86_64` on a `x86_64` PC and build it twice. It should get properly detected now: ```shell pmbootstrap build linux-amazon-thor pmbootstrap build linux-amazon-thor # should not get built again ``` --- pmb/build/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/build/package.py b/pmb/build/package.py index 6b9be512..1a32aa98 100644 --- a/pmb/build/package.py +++ b/pmb/build/package.py @@ -53,7 +53,7 @@ def package(args, pkgname, carch, force=False, buildinfo=False, strict=False): suffix) # Skip already built versions - if not force and not pmb.build.is_necessary(args, carch, apkbuild): + if not force and not pmb.build.is_necessary(args, carch_buildenv, apkbuild): return # Initialize build environment, install/build makedepends