From e6564509e19e5b3bd5819fd9dca8f63d297cae74 Mon Sep 17 00:00:00 2001
From: Romain Vigier <romain@romainvigier.fr>
Date: Mon, 13 Nov 2023 13:06:38 +0100
Subject: [PATCH] mat2: Fix the --no-sandbox argument

The --no-sandbox argument was parsed incorrectly, meaning no sandbox was
used when it was absent and the sandbox being used when it was present.
---
 mat2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mat2 b/mat2
index e970d98..8bc08af 100755
--- a/mat2
+++ b/mat2
@@ -57,8 +57,8 @@ def create_arg_parser() -> argparse.ArgumentParser:
                         ', '.join(p.value for p in UnknownMemberPolicy))
     parser.add_argument('--inplace', action='store_true',
                         help='clean in place, without backup')
-    parser.add_argument('--no-sandbox', dest='sandbox', action='store_true',
-                        default=False, help='Disable bubblewrap\'s sandboxing')
+    parser.add_argument('--no-sandbox', dest='sandbox', action='store_false',
+                        default=True, help='Disable bubblewrap\'s sandboxing')
 
     excl_group = parser.add_mutually_exclusive_group()
     excl_group.add_argument('files', nargs='*', help='the files to process',
-- 
GitLab