Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/default_profiles
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-06-05 18:02:49 +1000
committerGitHub <noreply@github.com>2023-06-05 10:02:49 +0200
commit06eadb31d4f0bca0c8cb95b6a9eb62ddd2d7cff2 (patch)
tree07a7ed675d125703346fa343f1aa9e5e4129dd5f /archinstall/default_profiles
parent5276d95339368210e75791e2b88c1bf5aca4517b (diff)
Move locales and cleanup menu (#1814)
* Cleanup imports and unused code * Cleanup imports and unused code * Update build check * Keep deprecation exception * Simplify logging * Move locale into new sub-menu --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/default_profiles')
-rw-r--r--archinstall/default_profiles/profile.py19
1 files changed, 4 insertions, 15 deletions
diff --git a/archinstall/default_profiles/profile.py b/archinstall/default_profiles/profile.py
index b1ad1f50..ce07c286 100644
--- a/archinstall/default_profiles/profile.py
+++ b/archinstall/default_profiles/profile.py
@@ -3,7 +3,7 @@ from __future__ import annotations
from enum import Enum, auto
from typing import List, Optional, Any, Dict, TYPE_CHECKING, TypeVar
-from archinstall.lib.output import FormattedOutput
+from archinstall.lib.utils.util import format_cols
if TYPE_CHECKING:
from archinstall.lib.installer import Installer
@@ -185,17 +185,6 @@ class Profile:
return None
def packages_text(self) -> str:
- text = str(_('Installed packages')) + ':\n'
-
- nr_packages = len(self.packages)
- if nr_packages <= 5:
- col = 1
- elif nr_packages <= 10:
- col = 2
- elif nr_packages <= 15:
- col = 3
- else:
- col = 4
-
- text += FormattedOutput.as_columns(self.packages, col)
- return text
+ header = str(_('Installed packages'))
+ output = format_cols(self.packages, header)
+ return output