Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/default_profiles/xorg.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/default_profiles/xorg.py')
-rw-r--r--archinstall/default_profiles/xorg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/default_profiles/xorg.py b/archinstall/default_profiles/xorg.py
index c9abf4da..88ba55a6 100644
--- a/archinstall/default_profiles/xorg.py
+++ b/archinstall/default_profiles/xorg.py
@@ -22,7 +22,10 @@ class XorgProfile(Profile):
def preview_text(self) -> Optional[str]:
text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
+ if packages := self.packages_text():
+ text += f'\n{packages}'
+
+ return text
@property
def packages(self) -> List[str]: