Commit 75fe8037 authored by Gökçen Nurlu's avatar Gökçen Nurlu Committed by Tristan Van Berkom Fix post-bwrap cleanup behaviour

The cleanup was supposed not to remove folders (`/dev`, `/tmp`, `/proc`) if
they already existed before bwrap but it did the opposite: it tried to remove
them if they existed before, and didn't remove them if they were created during
bwrap. This was caused by a `not` clause, and this removes it.

Fixes #379
parent fe24fc3b
Pipeline #23243116 passed with stages
in 28 minutes and 48 seconds
......@@ -207,7 +207,7 @@ class SandboxBwrap(Sandbox):
# Skip removal of directories which already existed before
# launching bwrap
if not existing_basedirs[basedir]:
if existing_basedirs[basedir]:
base_directory = os.path.join(root_mount_source, basedir)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment