From: crouzet Date: Mon, 17 May 2021 13:05:29 +0000 (+0200) Subject: intégration patch quentin spns #24113 pour plus de souplesse dans la définition des... X-Git-Tag: 5.8.0^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b5678334556982d3358678ab5f0bdd653b4ff08;p=tools%2Fsat.git intégration patch quentin spns #24113 pour plus de souplesse dans la définition des paquets natifs --- diff --git a/src/product.py b/src/product.py index bbeeffa..4c72a43 100644 --- a/src/product.py +++ b/src/product.py @@ -1229,11 +1229,15 @@ def check_system_dep(distrib, check_cmd, product_info): """ runtime_dep={} build_dep={} + if "system_info" in product_info: - if distrib in product_info.system_info: - sysinfo=product_info.system_info[distrib] - else: - sysinfo=product_info.system_info + + sysinfo=product_info.system_info + additional_sysinfo = None + + for key in sysinfo : + if distrib in key : + additional_sysinfo = sysinfo[key] if check_cmd[0]=="rpm": if "rpm" in sysinfo: @@ -1242,6 +1246,13 @@ def check_system_dep(distrib, check_cmd, product_info): if "rpm_dev" in sysinfo: for pkg in sysinfo.rpm_dev: build_dep[pkg]=src.system.check_system_pkg(check_cmd,pkg) + if additional_sysinfo : + if "rpm" in additional_sysinfo: + for pkg in additional_sysinfo.rpm: + runtime_dep[pkg]=src.system.check_system_pkg(check_cmd,pkg) + if "rpm_dev" in additional_sysinfo: + for pkg in additional_sysinfo.rpm_dev: + build_dep[pkg]=src.system.check_system_pkg(check_cmd,pkg) if check_cmd[0]=="apt": if "apt" in sysinfo: for pkg in sysinfo.apt: @@ -1249,6 +1260,14 @@ def check_system_dep(distrib, check_cmd, product_info): if "apt_dev" in sysinfo: for pkg in sysinfo.apt_dev: build_dep[pkg]=src.system.check_system_pkg(check_cmd,pkg) + if additional_sysinfo : + if "apt" in additional_sysinfo: + for pkg in additional_sysinfo.apt: + runtime_dep[pkg]=src.system.check_system_pkg(check_cmd,pkg) + if "apt_dev" in additional_sysinfo: + for pkg in additional_sysinfo.apt_dev: + build_dep[pkg]=src.system.check_system_pkg(check_cmd,pkg) + return runtime_dep,build_dep