Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2021-04-06 09:53:28 +0200
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-08 20:57:04 -0400
commit8c5af80c93270c463944fd891002d781f2949702 (patch)
tree2d2023a595ae065f9f1b942102de184db082ba60 /profiles
parent230c5709cc56f4896c7220d768d1da0302bf2cc0 (diff)
Some language correction and function handling
I more or less copied the language from i3-wm as it was more correct. Also converted `print()` into `installation.log()` so that we can get some color control and end up in the debug log. Finally, I added a try/except to handle potential crashes and return return values, since otherwise this would happen every run: * https://github.com/archlinux/archinstall/pull/190/files#diff-98d75a109b5337cd7d7c948d2cfc2379bcc51be22dfa3ca6491765f0e0bcaaabR349-R355
Diffstat (limited to 'profiles')
-rw-r--r--profiles/i3-gaps.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/profiles/i3-gaps.py b/profiles/i3-gaps.py
index d9469dcd..96d972e3 100644
--- a/profiles/i3-gaps.py
+++ b/profiles/i3-gaps.py
@@ -21,8 +21,13 @@ def _post_install(*args, **kwargs):
Another magic function called after the system
has been installed.
"""
- print("the installation of i3 does not conatain any configuerations for the wm. in this shell you take your time should add your configuerations")
- subprocess.check_call("arch-chroot /mnt",shell=True)
+ installation.log("the installation of i3 does not conatain any configuerations for the wm. In this shell you should take your time to add your desiired configueration. Exit the shell once you are done to continue the installation.", fg="yellow")
+ try:
+ subprocess.check_call("arch-chroot /mnt",shell=True)
+ except subprocess.CallProcessError:
+ return False
+
+ return True
if __name__ == 'i3-wm':
# Install dependency profiles