]> arthur.barton.de Git - bup.git/commitdiff
cmd/index-cmd.py: How it pains me to have to explicitly close() stuff
authorLukasz Kosewski <lkosewsk@gmail.com>
Mon, 15 Mar 2010 03:20:08 +0000 (23:20 -0400)
committerLukasz Kosewski <lkosewsk@gmail.com>
Mon, 15 Mar 2010 20:15:47 +0000 (16:15 -0400)
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.

cmd/index-cmd.py

index c3d9090884f28d01ccf29299d8281eaa63f4143f..15ee023c82061f0a937b17f29bb9c7494093f417 100755 (executable)
@@ -108,6 +108,7 @@ def update_index(top):
             merge_indexes(mi, ri, wr)
             ri.close()
             mi.close()
+            wr.close()
         wi.abort()
     else:
         wi.close()