index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Girtler <blackrabbit256@gmail.com> | 2023-06-05 18:02:49 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 10:02:49 +0200 |
commit | 06eadb31d4f0bca0c8cb95b6a9eb62ddd2d7cff2 (patch) | |
tree | 07a7ed675d125703346fa343f1aa9e5e4129dd5f /archinstall/default_profiles | |
parent | 5276d95339368210e75791e2b88c1bf5aca4517b (diff) |
-rw-r--r-- | archinstall/default_profiles/profile.py | 19 |
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 |