Files
nixpkgs/maintainers/scripts/update.py
Jan Tojnar 9fc19b0866 maintainers/scripts/update.py: Fix worktree cleanup on failure
The context manager would previously just terminate early on exception.
As a result, the worktree and branch would not get pruned when update script failed.

Let’s wrap the cleanup code in `finally` block as suggested by Python docs:
https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager
2024-07-13 15:48:17 +02:00

10 KiB