shithub: choc

Download patch

ref: 48f39f1ee566051d8084827fd31b8cd99c8570d6
parent: d131bab501c6d705b6449852d8271dde20245ddd
author: Simon Howard <fraggle@gmail.com>
date: Sun Jun 21 15:03:38 EDT 2009

Remove temporary files after generating CAB file.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1605

--- a/pkg/wince/wince-cabgen
+++ b/pkg/wince/wince-cabgen
@@ -610,6 +610,12 @@
 
         os.spawnlp(os.P_WAIT, "lcab", *args)
 
+        # Clean up:
+
+        for tmpfile in header + files:
+            os.remove(tmpfile)
+        os.rmdir(temp_dir)
+
 def expand_path(filename):
 
     # Replace Unix-style / path separators with DOS-style \