From 882dc2a589efcf39a8b9290d5cf7f765f827d68e Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Sat, 21 Sep 2024 22:36:35 +1000 Subject: [PATCH] Update --- archinstall/lib/disk/partitioning_menu.py | 5 ++++- archinstall/lib/mirrors.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/archinstall/lib/disk/partitioning_menu.py b/archinstall/lib/disk/partitioning_menu.py index da6f1ff9f1..5754e60cfa 100644 --- a/archinstall/lib/disk/partitioning_menu.py +++ b/archinstall/lib/disk/partitioning_menu.py @@ -53,7 +53,10 @@ def __init__(self, prompt: str, device: BDevice, device_partitions: List[Partiti super().__init__(prompt, device_partitions, display_actions[:2], display_actions[3:]) def selected_action_display(self, partition: PartitionModification) -> str: - return str(_('Partition')) + if partition.status == ModificationStatus.Create: + return str(_('Partition - New')) + else: + return str(partition.dev_path) def filter_options(self, selection: PartitionModification, options: List[str]) -> List[str]: not_filter = [] diff --git a/archinstall/lib/mirrors.py b/archinstall/lib/mirrors.py index 4afc678df6..a3b5e928cb 100644 --- a/archinstall/lib/mirrors.py +++ b/archinstall/lib/mirrors.py @@ -313,7 +313,7 @@ def run(self) -> MirrorConfiguration: def select_mirror_regions(preset: Dict[str, List[MirrorStatusEntryV3]]) -> Dict[str, List[MirrorStatusEntryV3]]: mirrors: Dict[str, List[MirrorStatusEntryV3]] = list_mirrors() - items = [MenuItem(name, value=(name, mirror)) for name, mirror in mirrors.items()] + items = [MenuItem(name, value=(name, mirrors)) for name, mirrors in mirrors.items()] group = MenuItemGroup(items, sort_items=True) preset_values = [(name, mirror) for name, mirror in preset.items()] @@ -333,7 +333,7 @@ def select_mirror_regions(preset: Dict[str, List[MirrorStatusEntryV3]]) -> Dict[ case ResultType.Reset: return {} case ResultType.Selection: - selected_mirrors: List[Tuple[str, MirrorStatusEntryV3]] = result.get_values() + selected_mirrors: List[Tuple[str, List[MirrorStatusEntryV3]]] = result.get_values() return {name: mirror for name, mirror in selected_mirrors} return {}