Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
svartkanin committed Sep 21, 2024
1 parent 6933d3a commit 882dc2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion archinstall/lib/disk/partitioning_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
4 changes: 2 additions & 2 deletions archinstall/lib/mirrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand All @@ -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 {}
Expand Down

0 comments on commit 882dc2a

Please sign in to comment.