Compare commits

..

1 commit

Author SHA1 Message Date
2bcafe0f3b
Merge 6cb9f46cae into 8172195f95 2024-10-23 16:59:24 +02:00
2 changed files with 3 additions and 7 deletions

View file

@ -248,7 +248,7 @@ class Container(IsolationProvider):
else: else:
msg = ( msg = (
f"{Container.CONTAINER_NAME} images found, but IDs do not match." f"{Container.CONTAINER_NAME} images found, but IDs do not match."
f" Found: {found_image_id}, Expected: {','.join(expected_image_ids)}" f"Found: {found_image_id}, Expected: {','.join(expected_image_ids)}"
) )
if raise_on_error: if raise_on_error:
raise ImageNotPresentException(msg) raise ImageNotPresentException(msg)

View file

@ -70,18 +70,14 @@ class Qubes(IsolationProvider):
standard streams explicitly, so that we can afterwards use `Popen.wait()` to standard streams explicitly, so that we can afterwards use `Popen.wait()` to
learn if the qube terminated. learn if the qube terminated.
Note that we don't close the stderr stream because we want to read debug logs
from it. In the rare case where a qube cannot terminate because it's stuck
writing at stderr (this is not the expected behavior), we expect that the
process will still be forcefully killed after the soft termination timeout
expires.
[1]: https://github.com/freedomofpress/dangerzone/issues/563#issuecomment-2034803232 [1]: https://github.com/freedomofpress/dangerzone/issues/563#issuecomment-2034803232
""" """
if p.stdin: if p.stdin:
p.stdin.close() p.stdin.close()
if p.stdout: if p.stdout:
p.stdout.close() p.stdout.close()
if p.stderr:
p.stderr.close()
def teleport_dz_module(self, wpipe: IO[bytes]) -> None: def teleport_dz_module(self, wpipe: IO[bytes]) -> None:
"""Send the dangerzone module to another qube, as a zipfile.""" """Send the dangerzone module to another qube, as a zipfile."""