From 2d16ccdb05b4e0316a234ac7866cee44132b846b Mon Sep 17 00:00:00 2001 From: crouzet Date: Mon, 13 May 2019 14:22:24 +0200 Subject: [PATCH] spns #16894 : clean tmp dir at the end of sat package --- commands/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/package.py b/commands/package.py index bf3fbee..ec2a16c 100644 --- a/commands/package.py +++ b/commands/package.py @@ -1597,8 +1597,9 @@ Please add it in file: if os.path.isdir(tmp_local_working_dir): shutil.rmtree(tmp_local_working_dir) - # have to decide some time - DBG.tofix("make shutil.rmtree('%s') effective" % tmp_working_dir, "", DBG.isDeveloper()) + # remove the tmp directory, unless user has registered as developer + if os.path.isdir(tmp_working_dir) and (not DBG.isDeveloper()): + shutil.rmtree(tmp_working_dir) # Print again the path of the package logger.write("\n", 2) -- 2.39.2