Browse Source

tools: cleanup temporary files after qvm-template-postprocess

Marek Marczykowski-Górecki 6 years ago
parent
commit
b895015274
1 changed files with 3 additions and 0 deletions
  1. 3 0
      qubesadmin/tools/qvm_template_postprocess.py

+ 3 - 0
qubesadmin/tools/qvm_template_postprocess.py

@@ -216,6 +216,9 @@ def post_install(args):
     if not args.skip_start:
         yield from call_postinstall_service(vm)
 
+    if not args.keep_source:
+        shutil.rmtree(args.dir)
+
     return 0