From: crouzet Date: Wed, 11 Dec 2019 15:07:08 +0000 (+0100) Subject: bug fix with both -n and -p options are used X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0254e7128279e39b47167258561df5884f618437;p=tools%2Fsat.git bug fix with both -n and -p options are used --- diff --git a/commands/package.py b/commands/package.py index f76b37b..25cf410 100644 --- a/commands/package.py +++ b/commands/package.py @@ -1520,8 +1520,7 @@ Please add it in file: if options.project: if options.sat: archive_name += "_" - project_name = options.project - archive_name += ("satproject_" + project_name) + archive_name += ("satproject_" + options.project) if len(archive_name)==0: # no option worked msg = _("Error: Cannot name the archive\n" @@ -1600,8 +1599,8 @@ Please add it in file: options, logger)) if options.project: - DBG.write("config for package %s" % project_name, runner.cfg) - d_files_to_add.update(project_package(runner.cfg, project_name, options.project_file_path, options.ftp, tmp_working_dir, options.sat, logger)) + DBG.write("config for package %s" % options.project, runner.cfg) + d_files_to_add.update(project_package(runner.cfg, options.project, options.project_file_path, options.ftp, tmp_working_dir, options.sat, logger)) if not(d_files_to_add): msg = _("Error: Empty dictionnary to build the archive!\n")