init: tweak UIs hidden message
Shorten this message: > NOTE: 6 user interfaces are not available. If device supports GPU > acceleration, set "deviceinfo_gpu_accelerated" to make UIs available. > See: <https://wiki.postmarketos.org/wiki/Deviceinfo_reference to: > NOTE: 6 UIs are hidden because "deviceinfo_gpu_accelerated" is not set > (see https://postmarketos.org/deviceinfo). This also fixes the non-closed angle bracket by simply removing it. I used to put angle brackets around all URLs printed in pmbootstrap initially, but have been moving away from that when touching related code as it doesn't add anything useful. Reviewed-by: Luca Weiss <luca@z3ntu.xyz> Reviewed-by: Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230802172542.4861-3-ollieparanoid@postmarketos.org%3E
This commit is contained in:
parent
216b3ef267
commit
17ce5e611c
|
@ -160,11 +160,9 @@ def ask_for_ui(args, info):
|
|||
logging.info(f"* {ui[0]}: {ui[1]}")
|
||||
ui_completion_list.append(ui[0])
|
||||
if hidden_ui_count > 0:
|
||||
logging.info(f"NOTE: {hidden_ui_count} user interfaces are not"
|
||||
" available. If device supports GPU acceleration,"
|
||||
" set \"deviceinfo_gpu_accelerated\" to make UIs"
|
||||
" available. See: <https://wiki.postmarketos.org/wiki/"
|
||||
"Deviceinfo_reference")
|
||||
logging.info(f"NOTE: {hidden_ui_count} UIs are hidden because"
|
||||
" \"deviceinfo_gpu_accelerated\" is not set (see"
|
||||
" https://postmarketos.org/deviceinfo).")
|
||||
while True:
|
||||
ret = pmb.helpers.cli.ask("User interface", None, default, True,
|
||||
complete=ui_completion_list)
|
||||
|
|
Loading…
Reference in New Issue