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>2019-11-19 00:17:31 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-19 00:17:31 +0000
commita543c2033c1e27ffa57b9762c63f792d6c2b451f (patch)
tree247c1af605a6a4e253ef99351227ce565a681131
parent42676d57877bcccb8e5f2869891a790e94d450a0 (diff)
Enhanced spawn logic a bit
-rw-r--r--archinstall.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 26091ea8..ec371dee 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -292,7 +292,14 @@ class sys_command():#Thread):
if not self.pid: # Child process
# Replace child process with our main process
if not self.kwargs['emulate']:
- os.execv(self.cmd[0], self.cmd)
+ try:
+ os.execv(self.cmd[0], self.cmd)
+ except FileNotFoundError:
+ self.status = 'done'
+ log(f"{self.cmd[0]} does not exist.", origin='spawn', level=2)
+ self.exit_code = 1
+ return False
+
os.chdir(old_dir)
poller = epoll()