Salome HOME
parametrisation dans INTERNAL.config.binary_dir de la chaine BINARIES pour réduction...
authorcrouzet <nicolas.crouzet@cea.fr>
Fri, 6 Sep 2019 12:40:45 +0000 (14:40 +0200)
committercrouzet <nicolas.crouzet@cea.fr>
Fri, 6 Sep 2019 12:40:45 +0000 (14:40 +0200)
commands/package.py
src/internal_config/salomeTools.pyconf

index c9a033c36377408745625c0ca281f3258311df84..1f9c8bcef6de02756d7a38ef06d74a5b123ae5cb 100644 (file)
@@ -393,7 +393,7 @@ def produce_install_bin_file(config,
                                         "INSTALL_BIN.template")
         
         # build the name of the directory that will contain the binaries
-        binaries_dir_name = "BINARIES-" + config.VARS.dist
+        binaries_dir_name = config.INTERNAL.config.binary_dir + config.VARS.dist
         # build the substitution loop
         loop_cmd = "for f in $(grep -RIl"
         for key in d_sub:
@@ -558,7 +558,9 @@ def binary_package(config, logger, options, tmp_working_dir):
         
     # check the name of the directory that (could) contains the binaries 
     # from previous detar
-    binaries_from_detar = os.path.join(config.APPLICATION.workdir, "BINARIES-" + config.VARS.dist)
+    binaries_from_detar = os.path.join(
+                              config.APPLICATION.workdir,
+                              config.INTERNAL.config.binary_dir + config.VARS.dist)
     if os.path.exists(binaries_from_detar):
          logger.write("""
 WARNING: existing binaries directory from previous detar installation:
@@ -606,7 +608,7 @@ WARNING: existing binaries directory from previous detar installation:
                          1)
  
     # construct the name of the directory that will contain the binaries
-    binaries_dir_name = "BINARIES-" + config.VARS.dist
+    binaries_dir_name = config.INTERNAL.config.binary_dir + config.VARS.dist
     
     # construct the correlation table between the product names, there 
     # actual install directories and there install directory in archive
@@ -1536,8 +1538,9 @@ Please add it in file:
         for key in d_bin_files_to_add:
             if key.endswith("(bin)"):
                 source_dir = d_bin_files_to_add[key][0]
-                path_in_archive = d_bin_files_to_add[key][1].replace("BINARIES-" +\
-                   runner.cfg.VARS.dist,runner.cfg.INTERNAL.config.install_dir)
+                path_in_archive = d_bin_files_to_add[key][1].replace(
+                   config.INTERNAL.config.binary_dir + runner.cfg.VARS.dist,
+                   runner.cfg.INTERNAL.config.install_dir)
                 if os.path.basename(source_dir)==os.path.basename(path_in_archive):
                     # if basename is the same we will just substitute the dirname 
                     d_paths_to_substitute[os.path.dirname(source_dir)]=\
index 4e9a8d557033ea68408c8ca47344a56eb7ec6e77..b8bef1bbee39681c2290be3da489d0ea59d6f9a8 100644 (file)
@@ -8,6 +8,7 @@ INTERNAL :
     {    
         copy_prefix : "LOCAL_"
         install_dir : "INSTALL"
+        binary_dir : "BINARIES-"
         single_install_dir : "PRODUCTS"
     }
     log :