Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2021-04-06 09:53:28 +0200
committerGitHub <noreply@github.com>2021-04-06 09:53:28 +0200
commit2f153d4882bc7954288d608721858554627ce2d7 (patch)
treece840e42e24201bcae1e6832b3f1d2414bfe30d3
parentf0e40f56765156aff22cb270b28aa15c5547534f (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
-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