pmbootstrap install: support _pmb_recommends (MR 1962)

Let UI meta-packages specify apps in "pmb_recommends" to be explicitly
installed by default, and not implicitly as dependency of the UI
meta-package ("depends"). Therefore make these apps uninstallable,
without removing the meta-package.

Add pmbootstrap install --no-recommends to disable this feature.
This commit is contained in:
Oliver Smith 2020-07-20 08:57:01 +02:00 committed by Bart Ribbers
parent c8d581e749
commit d8615a9cae
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
5 changed files with 91 additions and 1 deletions

View file

@ -565,6 +565,10 @@ def arguments():
install.add_argument("--no-local-pkgs", dest="install_local_pkgs",
help="do not install locally compiled packages and"
" package signing keys", action="store_false")
install.add_argument("--no-recommends", dest="install_recommends",
help="do not install packages listed in"
" _pmb_recommends of the UI pmaports",
action="store_false")
group = install.add_mutually_exclusive_group()
group.add_argument("--sparse", help="generate sparse image file"
" (even if unsupported by device)", default=None,