From: Serge Rehbinder Date: Thu, 3 Nov 2016 10:29:23 +0000 (+0100) Subject: suppress the possibility to add a source archive into a binary package X-Git-Tag: 5.0.0a1~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd9d015e9fbf21e1773d1697608fa65b745d8b71;p=tools%2Fsat.git suppress the possibility to add a source archive into a binary package --- diff --git a/commands/package.py b/commands/package.py index 1c46174..d372807 100644 --- a/commands/package.py +++ b/commands/package.py @@ -83,9 +83,6 @@ parser.add_option('b', 'binaries', 'boolean', 'binaries', parser.add_option('f', 'force_creation', 'boolean', 'force_creation', _('Optional: Only binary package: produce the archive even if ' 'there are some missing products.'), False) -parser.add_option('', 'with_sources', 'boolean', 'with_sources', - _('Optional: Only binary package: produce and and a source archive in the ' - 'binary package.'), False) parser.add_option('s', 'sources', 'boolean', 'sources', _('Optional: Produce a compilable archive of the sources of the ' 'application.'), False) @@ -938,25 +935,6 @@ def run(args, runner, logger): tmp_working_dir) if not(d_files_to_add): return 1 - - # Create and add the source package - # if the option "with_sources" is called - if options.with_sources: - logger.write(_("Create a source archive (can be long) ... "), 3) - tmp_pkg_src_name = runner.cfg.APPLICATION.name + "-" + "SRC.tgz" - tmp_pkg_src_path = os.path.join(tmp_working_dir, tmp_pkg_src_name) - package_options = runner.cfg.VARS.application - package_options += " --sources --with_vcs --name " - package_options += tmp_pkg_src_path - # sat package - runner.package(package_options, - batch = True, - verbose = 0, - logger_add_link = logger) - d_files_to_add["SOURCES PACKAGE"] = (tmp_pkg_src_path, - tmp_pkg_src_name) - logger.write(src.printcolors.printc("OK"), 3) - logger.write("\n", 3) if package_type == SOURCE: d_files_to_add = source_package(runner,