]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
bug fix: do not expect a product that do not compile when compiling a product that...
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 21 Sep 2016 13:04:32 +0000 (15:04 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 21 Sep 2016 13:04:32 +0000 (15:04 +0200)
src/product.py

index f3e26826431d122207c4953a52e105116fa14653..05db3a0c6631b2939fe5e2e8bb594670ae0d27a6 100644 (file)
@@ -427,7 +427,9 @@ def check_installation(product_info):
                                the product
     :return: True if it is well installed
     :rtype: boolean
-    '''       
+    '''
+    if not product_compiles(product_info):
+        return True
     install_dir = product_info.install_dir
     if not os.path.exists(install_dir):
         return False
@@ -579,6 +581,19 @@ def product_is_cpp(product_info):
             "cpp" in product_info.properties and
             product_info.properties.cpp == "yes")
 
+def product_compiles(product_info):
+    '''Know if a product compiles or not (some products do not have a 
+       compilation procedure)
+    
+    :param product_info Config: The configuration specific to 
+                               the product
+    :return: True if the product compiles, else False
+    :rtype: boolean
+    '''
+    return not("properties" in product_info and
+            "compilation" in product_info.properties and
+            product_info.properties.compilation == "no")
+
 def product_has_script(product_info):
     '''Know if a product has a compilation script