mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-24 21:15:10 +03:00
Only download APKINDEX for relevant architectures (#1201)
### Only download APKINDEX for relevant architectures We're downloading the APKINDEX files for all architectures supported by postmarketOS currently (x86, x86_64, armhf, aarch64). Most of the time, we only need it for the native and device arch, so this PR reduces the downloaded files to what is really necessary. ### Intuitive pmbootstrap update logic * pmb.helpers.repo.update(): * Default is updating all arches where the APKBUILD files exist * Add existing_only parameter * Return True when files have been downloaded * Properly print which arches will be updated * Print update reason only in verbose log * Add and improve comments * pmb.parse.arguments(), update action: * Add --non-existing parameter * Default for --arch is None (instead of arch.native) * pmb.helpers.frontend.update(): * Inform about --non-existing if no APKBUILDs have been updated
This commit is contained in:
parent
e6bb96426b
commit
99127111a1
8 changed files with 58 additions and 21 deletions
|
@ -207,7 +207,14 @@ def menuconfig(args):
|
|||
|
||||
|
||||
def update(args):
|
||||
pmb.helpers.repo.update(args, True)
|
||||
existing_only = not args.non_existing
|
||||
if not pmb.helpers.repo.update(args, args.arch, True, existing_only):
|
||||
logging.info("No APKINDEX files exist, so none have been updated."
|
||||
" The pmbootstrap command downloads the APKINDEX files on"
|
||||
" demand.")
|
||||
logging.info("If you want to force downloading the APKINDEX files for"
|
||||
" all architectures (not recommended), use:"
|
||||
" pmbootstrap update --non-existing")
|
||||
|
||||
|
||||
def newapkbuild(args):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue