Module: check_mk
Branch: master
Commit: a8747233b2629365547878dffdfbb2a6d21dee34
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a8747233b26293…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Oct 13 16:23:23 2014 +0200
msi build: missing cleanup of work_dir
---
agents/windows/msibuild/msi-update | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/agents/windows/msibuild/msi-update b/agents/windows/msibuild/msi-update
index a999e84..99a5dd8 100755
--- a/agents/windows/msibuild/msi-update
+++ b/agents/windows/msibuild/msi-update
@@ -24,7 +24,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-import os, sys, uuid, tempfile
+import os, sys, uuid, tempfile, shutil
def verbose(text):
if opt_verbose:
@@ -181,5 +181,6 @@ verbose("Add modified product.cab")
os.system((path_prefix + "msibuild %(new_msi_file)s -a product.cab
%(work_dir)s/product.cab") % \
{ "work_dir" : work_dir, "new_msi_file": new_msi_file })
+shutil.rmtree(work_dir)
verbose("Successfully created file " + new_msi_file)