From: Daan De Meyer Date: Thu, 5 Sep 2024 10:35:46 +0000 (+0200) Subject: sandbox: Use separate variable name when we change types X-Git-Tag: v25~315 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=025483af0459d42ec02a4c820a3771c757d3f38d;p=thirdparty%2Fmkosi.git sandbox: Use separate variable name when we change types --- diff --git a/mkosi/sandbox.py b/mkosi/sandbox.py old mode 100644 new mode 100755 index 9fc81a5a5..4df01b8f3 --- a/mkosi/sandbox.py +++ b/mkosi/sandbox.py @@ -380,7 +380,7 @@ class FSOperation: # Drop all bind mounts that are mounted from beneath another bind mount to the same location within the new # rootfs. - binds = [ + optimized = [ m for m in binds if not any( m != n and @@ -395,7 +395,7 @@ class FSOperation: # Make sure bind mounts override other operations on the same destination by appending them to the rest and # depending on python's stable sort behavior. - return sorted([*rest, *binds], key=lambda fsop: splitpath(fsop.dst)) + return sorted([*rest, *optimized], key=lambda fsop: splitpath(fsop.dst)) class BindOperation(FSOperation):