Changeset 414 for branches


Ignore:
Timestamp:
09/17/2009 22:42:59 (3 years ago)
Author:
ccowart
Message:

Merging REPO_URI changes from trunk into 1.9 branch.

Fixes #63

Location:
branches/confman-1.9
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

    • Property svn:mergeinfo changed
      /trunkmerged: 413
  • branches/confman-1.9/confexport.in

    r368 r414  
    3939    exit 1 
    4040fi 
     41 
     42# This potentially changes the behavior for selecting the REPO_URI 
     43CONF_EXPORT="true" 
    4144 
    4245function print_help { 
  • branches/confman-1.9/confman.conf.5.in

    r404 r414  
    8383.It CONF_EXPORT_MODE 
    8484The permissions, in octal format, for the  
     85.It EXPORT_REPO_PROTOCOL, EXPORT_REPO_HOSTNAME, EXPORT_REPO_PATH 
     86These options are analagous to their counterparts above (without the 
     87EXPORT prefixes). Use these to tell 
     88.Xr confexport 8 to look in an alternate location for the repository when 
     89automated access is provided by a separate mechanism from the interactive 
     90toolset. It can often be useful to have the repository accessible over 
     91"svn+ssh://" in interactive use (e.g.,  
     92.Xr confman 5 ), but to have local "file://" access for 
     93.Xr confexport 5 . These default to unset, in which case the repository 
     94will be found using the REPO_* configurations. 
    8595.Xr confexport 8 
    8696export. Defaults to 0640. 
  • branches/confman-1.9/confman.conf.in

    r404 r414  
    7171CONF_EXPORT_WORK_PATH="" 
    7272CONF_EXPORT_STYLE="repository" 
     73EXPORT_REPO_PROTOCOL="" 
     74EXPORT_REPO_HOSTNAME="" 
     75EXPORT_REPO_PATH="" 
    7376CONF_SSH_KEY="/root/.ssh/id_rsa" 
    7477 
  • branches/confman-1.9/confmancommon.sh.in

    r412 r414  
    122122fi 
    123123 
    124 # Verify that required options have been set 
    125 if [ "x${REPO_PROTOCOL}" = "xfile://" ] ; then 
    126     MUST_SET="REPO_PROTOCOL REPO_PATH" 
    127 else 
    128     MUST_SET="REPO_PROTOCOL REPO_HOSTNAME REPO_PATH" 
    129 fi 
    130  
    131 for option in $MUST_SET ; do 
    132     conf_verify_option_set $option 
    133 done 
    134  
    135124# Test if the specified group exists before setting folder groups 
    136125if ! [ -d "$REPO_DB" ] ; then 
  • branches/confman-1.9/confmanlib.sh.in

    r412 r414  
    3131RECIPE_NAME="$(cat "$RECIPE_FILE" 2>/dev/null)" 
    3232WCOPY_DIRTY="false" 
     33CONF_EXPORT="false" 
    3334 
    3435VERSION='@VERSION@' 
     
    3940        local proto="${REPO_PROTOCOL%:/*}" 
    4041        local uri 
     42 
     43    # When we're running in export mode and the user has configured 
     44    # a separate REPO location for it 
     45    if ${CONF_EXPORT} && [ -n "$EXPORT_REPO_PATH" ] ; then 
     46        # Determine which options must be set 
     47        if [ "x${EXPORT_REPO_PROTOCOL}" = "xfile://" ] ; then 
     48            MUST_SET="EXPORT_REPO_PROTOCOL EXPORT_REPO_PATH" 
     49        else 
     50            MUST_SET="EXPORT_REPO_PROTOCOL EXPORT_REPO_HOSTNAME  
     51                EXPORT_REPO_PATH" 
     52        fi 
     53        REPO_PROTOCOL="$EXPORT_REPO_PROTOCOL" 
     54        REPO_HOSTNAME="$EXPORT_REPO_HOSTNAME" 
     55        REPO_PATH="$EXPORT_REPO_PATH" 
     56    else 
     57        # Determine which options must be set 
     58        if [ "x${REPO_PROTOCOL}" = "xfile://" ] ; then 
     59            MUST_SET="REPO_PROTOCOL REPO_PATH" 
     60        else 
     61            MUST_SET="REPO_PROTOCOL REPO_HOSTNAME REPO_PATH" 
     62        fi 
     63    fi 
     64     
     65    # Verify that required options have been set 
     66    for option in $MUST_SET ; do 
     67        conf_verify_option_set $option 
     68    done 
    4169 
    4270        case $proto in 
Note: See TracChangeset for help on using the changeset viewer.