forked from Mirror/pmbootstrap
Rename build.package() to build.packages() and take a list of packages to build, since every caller was inside a for loop this simplifies usage and let's us give nicer log output by doing all the builds first, so log messages don't get lost in the middle. Behaviour is cleaned up so this shouuuuld work pretty well now. It properly descends into dependencies and will build dependencies even if the package given doesn't need building. Technically this was only done before during install where the dependencies were recursed in chroot.apk.install(). It probably makes the most sense to have a mode where it doesn't build dependencies but warns the user about it, at least when invoked via pmbootstrap build. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
10 lines
475 B
Python
10 lines
475 B
Python
# Copyright 2023 Oliver Smith
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
from pmb.build.init import init, init_abuild_minimal, init_compiler
|
|
from pmb.build.envkernel import package_kernel
|
|
from pmb.build.kconfig import menuconfig
|
|
from pmb.build.newapkbuild import newapkbuild
|
|
from pmb.build.other import copy_to_buildpath, is_necessary, \
|
|
index_repo
|
|
from pmb.build._package import BootstrapStage, mount_pmaports, packages, \
|
|
output_path, BuildQueueItem, get_apkbuild
|