logger.write(src.printcolors.printcLabel(_("Actually do the package")), 2)
logger.write("\n", 2)
-
+
+ res = 0
try:
# Creating the object tarfile
tar = tarfile.open(path_targz, mode='w:gz')
filter_function = exclude_VCS_and_extensions
# Add the files to the tarfile object
- res = add_files(tar, archive_name, d_files_to_add, logger, f_exclude=filter_function)
+ # res = add_files(tar, archive_name, d_files_to_add, logger, f_exclude=filter_function)
tar.close()
except KeyboardInterrupt:
logger.write(src.printcolors.printcError("\nERROR: forced interruption\n"), 1)
if os.path.isdir(tmp_local_working_dir):
shutil.rmtree(tmp_local_working_dir)
- # to decide...
- DBG.tofix("make shutil.rmtree('%s') effective" % tmp_working_dir, "", True)
+ # have to decide some time
+ DBG.tofix("make shutil.rmtree('%s') effective" % tmp_working_dir, "", DBG.isDevelopper())
# Print again the path of the package
logger.write("\n", 2)
_developpers = ["christian", "wambeke", "crouzet"] # crouzet, kloss ...
+def isDevelopper():
+ """if you are a developper, sometimes you want verbose traces etc."""
+ res = _user in _developpers
+ return res
+
def indent(text, amount=2, ch=' '):
"""indent multi lines message"""
padding = amount * ch