From 982defefd1655adfeb31831d3094968087a71588 Mon Sep 17 00:00:00 2001 From: crouzet Date: Thu, 18 Feb 2021 13:46:48 +0100 Subject: [PATCH] sat #18867 : pour les url des bases git : substitution des references par leur valeur pour utilisation dans les archives --- commands/package.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/commands/package.py b/commands/package.py index 0d73bfc..180fb47 100644 --- a/commands/package.py +++ b/commands/package.py @@ -1139,6 +1139,16 @@ def find_product_scripts_and_pyconf(p_name, product_pyconf_cfg[section].archive_info.archive_name =\ p_info.name + ".tgz" + if (with_vcs) and src.product.product_is_vcs(p_info): + # in vcs mode we must replace explicitely the git server url + # (or it will not be found later because project files are not exported in archives) + for section in product_pyconf_cfg: + # replace in all sections of the product pyconf the git repo definition by its substitued value (found in p_info) + if "git_info" in product_pyconf_cfg[section]: + for repo in product_pyconf_cfg[section].git_info: + if repo in p_info.git_info: + product_pyconf_cfg[section].git_info[repo] = p_info.git_info[repo] + # write the pyconf file to the temporary project location product_tmp_pyconf_path = os.path.join(products_pyconf_tmp_dir, p_name + ".pyconf") -- 2.39.2