Changeset 495 for trunk/confman.in


Ignore:
Timestamp:
11/12/2009 11:06:23 (2 years ago)
Author:
blee
Message:

Fix the installation of singularities.

There are a few corresponding library function fixes for:

  • conf_livefile
  • conf_wfile_is_singularity

and a new library function, conf_wfile_module.

Fixes #102

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman.in

    r492 r495  
    254254function inst { 
    255255    local file livefile 
    256     local msg status files file sing 
     256    local msg status files args 
    257257    local nocommit=true 
    258258    local system_lock wcopy_lock 
    259259    local opt OPTIND OPTARG 
     260    local module 
    260261 
    261262    while getopts ":m:F:" opt ; do 
     
    290291     
    291292    for layer in $(conf_get_recipe) ; do 
    292         conf_install $layer "$@" 
     293        # Fix singularities in the file arguments 
     294        args= 
     295        for file in "$@"; do 
     296            module=$(conf_wfile_module $file) 
     297            if conf_wfile_is_singularity $file; then 
     298                args="${args:+${args} }${file%-$module}-${layer}" 
     299            else 
     300                args="${args:+${args} }${file}" 
     301            fi 
     302        done 
     303 
     304        conf_install $layer "$args" 
    293305    done 
    294306    for file in $SINGULARITIES ; do 
Note: See TracChangeset for help on using the changeset viewer.