forked from Mirror/pmbootstrap
helpers: ui: rename list() to list_ui() (MR 2252)
list is a reserved keyword... Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
1be8653935
commit
0a0cba51e1
4 changed files with 4 additions and 4 deletions
|
@ -139,7 +139,7 @@ def ask_for_channel(args: PmbArgs):
|
||||||
|
|
||||||
|
|
||||||
def ask_for_ui(args: PmbArgs, info):
|
def ask_for_ui(args: PmbArgs, info):
|
||||||
ui_list = pmb.helpers.ui.list(args, info["arch"])
|
ui_list = pmb.helpers.ui.list_ui(args, info["arch"])
|
||||||
hidden_ui_count = 0
|
hidden_ui_count = 0
|
||||||
device_is_accelerated = info.get("gpu_accelerated") == "true"
|
device_is_accelerated = info.get("gpu_accelerated") == "true"
|
||||||
if not device_is_accelerated:
|
if not device_is_accelerated:
|
||||||
|
|
|
@ -135,7 +135,7 @@ def init(args: PmbArgs) -> PmbArgs:
|
||||||
"pull", "shutdown", "zap"]:
|
"pull", "shutdown", "zap"]:
|
||||||
pmb.config.pmaports.read_config(args)
|
pmb.config.pmaports.read_config(args)
|
||||||
add_deviceinfo(args)
|
add_deviceinfo(args)
|
||||||
pmb.helpers.git.parse_channels_cfg(args)
|
pmb.helpers.git.parse_channels_cfg()
|
||||||
context.device_arch = args.deviceinfo["arch"]
|
context.device_arch = args.deviceinfo["arch"]
|
||||||
|
|
||||||
# Remove attributes from args so they don't get used by mistake
|
# Remove attributes from args so they don't get used by mistake
|
||||||
|
|
|
@ -7,7 +7,7 @@ import pmb.helpers.pmaports
|
||||||
import pmb.parse
|
import pmb.parse
|
||||||
|
|
||||||
|
|
||||||
def list(args: PmbArgs, arch):
|
def list_ui(args: PmbArgs, arch):
|
||||||
"""Get all UIs, for which aports are available with their description.
|
"""Get all UIs, for which aports are available with their description.
|
||||||
|
|
||||||
:param arch: device architecture, for which the UIs must be available
|
:param arch: device architecture, for which the UIs must be available
|
||||||
|
|
|
@ -27,7 +27,7 @@ def test_helpers_ui(args: PmbArgs):
|
||||||
dir. That test dir has a plasma-mobile UI, which is disabled for armhf,
|
dir. That test dir has a plasma-mobile UI, which is disabled for armhf,
|
||||||
so it must not be returned when querying the UI list for armhf. """
|
so it must not be returned when querying the UI list for armhf. """
|
||||||
args.aports = f"{pmb_test.const.testdata}/helpers_ui/pmaports"
|
args.aports = f"{pmb_test.const.testdata}/helpers_ui/pmaports"
|
||||||
func = pmb.helpers.ui.list
|
func = pmb.helpers.ui.list_ui
|
||||||
none_desc = "Bare minimum OS image for testing and manual" \
|
none_desc = "Bare minimum OS image for testing and manual" \
|
||||||
" customization. The \"console\" UI should be selected if" \
|
" customization. The \"console\" UI should be selected if" \
|
||||||
" a graphical UI is not desired."
|
" a graphical UI is not desired."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue