From: Lukasz Kosewski Date: Mon, 15 Mar 2010 03:20:08 +0000 (-0400) Subject: cmd/index-cmd.py: How it pains me to have to explicitly close() stuff X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=45ff04984277522eae1a7bcb83db1d0881eae14f;p=packages%2Fb%2Fbup.git cmd/index-cmd.py: How it pains me to have to explicitly close() stuff If we don't explicitly close() the wr reader object while running update-index, the corresponding writer object won't be able to unlink its temporary file under Cygwin. --- diff --git a/cmd/index-cmd.py b/cmd/index-cmd.py index c3d9090..15ee023 100755 --- a/cmd/index-cmd.py +++ b/cmd/index-cmd.py @@ -108,6 +108,7 @@ def update_index(top): merge_indexes(mi, ri, wr) ri.close() mi.close() + wr.close() wi.abort() else: wi.close()