From e9bcd196ecdb159765a43ce67e5898a8f3ed91f0 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 15 Jan 2025 22:59:59 +0100 Subject: [PATCH] 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. --- mkosi/sandbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.3