[elbe-devel] [PATCH 0/2] Issue 61 - elbe-daemon sys.exit() on error

dion at linutronix.de dion at linutronix.de
Thu Jun 27 17:58:20 CEST 2019


From: Olivier Dion <dion at linutronix.de>

See <https://github.com/Linutronix/elbe/issues/61>:

> There are many places where the elbe-daemon will simply print() an
> error and then sys.exit(). For example, if an invalid buildtype is
> specified in the XML. This is a problem because:
>     1. The elbe-daemon is no longer running on the initvm.
>     2. No useful information about the error is communicated over the
>        SOAP interface to the user.

Apparently manut had already tracked where the problems were.  I don't
think that the others sys.exit() can affect the daemon.

On another note, should we try to catch theses exceptions now?

Olivier Dion (2):
  Assert that the buildtype in XML is valid
  Assert that /etc/apt/trusted.gpg.d exists in VirtApt

 elbepack/virtapt.py     | 15 ++++++++-------
 elbepack/xmldefaults.py | 11 +++--------
 2 files changed, 11 insertions(+), 15 deletions(-)

-- 
2.11.0




More information about the elbe-devel mailing list