pmb.build._package: Clean up and expand documentation (MR 2003)

Fix typo introduced in earlier commit and expand on force=True behavior
This commit is contained in:
Martijn Braam 2020-12-09 16:16:02 +01:00
parent 1921fc5f27
commit 27127f1cae
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 6 additions and 1 deletions

View File

@ -476,9 +476,14 @@ def package(args, pkgname, arch=None, force=False, strict=False,
"""
Build a package and its dependencies with Alpine Linux' abuild.
If this function is called multiple times on the same pkgname but first
with force=False and then force=True the force argument will be ignored due
to the package cache.
See the skip_already_built() call below.
:param pkgname: package name to be built, as specified in the APKBUILD
:param arch: architecture we're building for (default: native)
:param force: allways build, even if not necessary
:param force: always build, even if not necessary
:param strict: avoid building with irrelevant dependencies installed by
letting abuild install and uninstall all dependencies.
:param skip_init_buildenv: can be set to False to avoid initializing the