(apps: list[App])
| 256 | |
| 257 | |
| 258 | def _write_lockfile(apps: list[App]) -> None: |
| 259 | with open("migrations_lockfile.txt", encoding="UTF-8") as f: |
| 260 | lines = f.readlines() |
| 261 | |
| 262 | with open("migrations_lockfile.txt", "w", encoding="UTF-8") as f: |
| 263 | f.writelines(lines[:6]) |
| 264 | for app in apps: |
| 265 | if os.path.exists(app.squash_fname): |
| 266 | f.write(f"\n{app.name}: {app.squash_name}\n") |
| 267 | |
| 268 | |
| 269 | def main() -> int: |