Commit f339bdf8 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

systemd-boot-builder: simplify conditions

parent 1e3deb3d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -230,10 +230,10 @@ def remove_old_entries(gens: list[SystemIdentifier]) -> None:
            gen_number = int(rex_generation.sub(r"\1", path))
        except ValueError:
            continue
        if not (prof, gen_number, None) in gens:
        if (prof, gen_number, None) not in gens:
            os.unlink(path)
    for path in glob.iglob(f"{BOOT_MOUNT_POINT}/{NIXOS_DIR}/*"):
        if not path in known_paths and not os.path.isdir(path):
        if path not in known_paths and not os.path.isdir(path):
            os.unlink(path)