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:
Caleb Connolly 2024-05-24 19:51:42 +02:00 committed by Oliver Smith
parent 1be8653935
commit 0a0cba51e1
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 4 additions and 4 deletions

View file

@ -139,7 +139,7 @@ def ask_for_channel(args: PmbArgs):
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
device_is_accelerated = info.get("gpu_accelerated") == "true"
if not device_is_accelerated:

View file

@ -135,7 +135,7 @@ def init(args: PmbArgs) -> PmbArgs:
"pull", "shutdown", "zap"]:
pmb.config.pmaports.read_config(args)
add_deviceinfo(args)
pmb.helpers.git.parse_channels_cfg(args)
pmb.helpers.git.parse_channels_cfg()
context.device_arch = args.deviceinfo["arch"]
# Remove attributes from args so they don't get used by mistake

View file

@ -7,7 +7,7 @@ import pmb.helpers.pmaports
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.
:param arch: device architecture, for which the UIs must be available

View file

@ -27,7 +27,7 @@ def test_helpers_ui(args: PmbArgs):
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. """
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" \
" customization. The \"console\" UI should be selected if" \
" a graphical UI is not desired."