From: Daan De Meyer Date: Wed, 15 Jan 2025 21:59:59 +0000 (+0100) Subject: sandbox: Use dict to store bind mounts instead of set X-Git-Tag: v25~48^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9bcd196ecdb159765a43ce67e5898a8f3ed91f0;p=thirdparty%2Fmkosi.git sandbox: Use dict to store bind mounts instead of set dict guarantee iteration in insertion order, set does not which matters in this specific case. --- diff --git a/mkosi/sandbox.py b/mkosi/sandbox.py index 5fd5bf2fc..55cad9932 100755 --- a/mkosi/sandbox.py +++ b/mkosi/sandbox.py @@ -428,12 +428,12 @@ class FSOperation: @classmethod def optimize(cls, fsops: list["FSOperation"]) -> list["FSOperation"]: - binds = set() + binds: dict[BindOperation, None] = {} rest = [] for fsop in fsops: if isinstance(fsop, BindOperation): - binds.add(fsop) + binds[fsop] = None else: rest.append(fsop)