pmb.chroot.apk.install: update func desc (MR 2185)

This commit is contained in:
Oliver Smith 2022-05-28 11:37:51 +02:00
parent 03303ef7bc
commit 6b520d2d26
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 9 additions and 3 deletions

View File

@ -187,10 +187,16 @@ def replace_aports_packages_with_path(args, packages, suffix, arch):
def install(args, packages, suffix="native", build=True): def install(args, packages, suffix="native", build=True):
""" """
Install packages from pmbootstrap's local package index or the pmOS/Alpine
binary package mirrors. Iterate over all dependencies recursively, and
build missing packages as necessary.
:param packages: list of pkgnames to be installed
:param suffix: the chroot suffix, e.g. "native" or "rootfs_qemu-amd64"
:param build: automatically build the package, when it does not exist yet :param build: automatically build the package, when it does not exist yet
or needs to be updated, and it is inside the pm-aports or needs to be updated, and it is inside pmaports. For the
folder. Checking this is expensive - if you know that all special case that all packages are expected to be in Alpine's
packages are provides by upstream repos, set this to False! repositories, set this to False for performance optimization.
""" """
# Initialize chroot # Initialize chroot
check_min_version(args, suffix) check_min_version(args, suffix)