]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
sandbox: Use separate variable name when we change types
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Sep 2024 10:35:46 +0000 (12:35 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 5 Sep 2024 10:43:08 +0000 (12:43 +0200)
mkosi/sandbox.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 9fc81a5..4df01b8
@@ -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):