]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat package --binaries: add the possibility to add sources of the products that have...
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Fri, 17 Feb 2017 10:58:51 +0000 (11:58 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Fri, 17 Feb 2017 10:58:51 +0000 (11:58 +0100)
commands/package.py

index f20471063b31e2b907480b9671382fee830d4475..9a5ff229fae57d158d16f2d524c046c6aa717437 100644 (file)
@@ -337,7 +337,17 @@ def binary_package(config, logger, options, tmp_working_dir):
     l_not_installed = []
     l_sources_not_present = []
     for prod_name, prod_info in l_product_info:
-        # ignore the native and fixed products
+
+        # Add the sources of the products that have the property 
+        # sources_in_package : "yes"
+        if src.get_property_in_product_cfg(prod_info,
+                                           "sources_in_package") == "yes":
+            if os.path.exists(prod_info.source_dir):
+                l_source_dir.append((prod_name, prod_info.source_dir))
+            else:
+                l_sources_not_present.append(prod_name)
+
+        # ignore the native and fixed products for install directories
         if (src.product.product_is_native(prod_info) 
                 or src.product.product_is_fixed(prod_info)
                 or not src.product.product_compiles(prod_info)):
@@ -358,15 +368,6 @@ def binary_package(config, logger, options, tmp_working_dir):
                 else:
                     l_not_installed.append(name_cpp)
         
-        # Add the sources of the products that have the property 
-        # sources_in_package : "yes"
-        if src.get_property_in_product_cfg(prod_info,
-                                           "sources_in_package") == "yes":
-            if os.path.exists(prod_info.source_dir):
-                l_source_dir.append((prod_name, prod_info.source_dir))
-            else:
-                l_sources_not_present.append(prod_name)
-        
     # Print warning or error if there are some missing products
     if len(l_not_installed) > 0:
         text_missing_prods = ""