Changeset 594 for branches


Ignore:
Timestamp:
12/27/2011 18:30:49 (5 months ago)
Author:
blee
Message:

Merge fix for #155 into confman-1.9.

Closes #155

Location:
branches/confman-1.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

    • Property svn:mergeinfo changed
      /trunkmerged: 593
  • branches/confman-1.9/confman.conf.5.in

    r586 r594  
    132132.Xr confexport 8 and 
    133133.Xr confsync 8 machines. 
     134.It CONF_EXPORT_FILEDB_PLUS_SVN 
     135When enabled, 
     136.Xr confexport 8 will also include Subversion metadata in export tarballs. 
     137This allows multiple versions of confsync clients to be supported in parallel 
     138by a single confexport server.  Upgraded confsync clients will automatically 
     139prefer to use the filedb metadata when it is available.  This option has no 
     140effect unless CONF_EXPORT_FILEDB is also enabled. 
    134141.It CONF_FETCH_SSH_KEY 
    135142This is a private SSH keyfile for use with "sftp://" and "scp://" URIs above. 
  • branches/confman-1.9/confman.conf.in

    r586 r594  
    8686CONF_EXPORT_INCREMENTAL_LN="false" 
    8787CONF_EXPORT_FILEDB="false" 
     88CONF_EXPORT_FILEDB_PLUS_SVN="false" 
    8889EXPORT_REPO_PROTOCOL="" 
    8990EXPORT_REPO_HOSTNAME="" 
  • branches/confman-1.9/confmanlib.sh.in

    r590 r594  
    511511 
    512512                    echo "Generating new export for module: ${module}" 
    513                     tar -hczf "${exportpath}/${module}.tgz" -C "${WORK_PATH}" --exclude='*.svn*' ${module} "meta/${module}.fdb" || return 1 
     513                    if ${CONF_EXPORT_FILEDB_PLUS_SVN}; then 
     514                        tar -hczf "${exportpath}/${module}.tgz" -C "${WORK_PATH}" ${module} "meta/${module}.fdb" || return 1 
     515                    else 
     516                        tar -hczf "${exportpath}/${module}.tgz" -C "${WORK_PATH}" --exclude='*.svn*' ${module} "meta/${module}.fdb" || return 1 
     517                    fi 
    514518 
    515519                    # XXX: The fdbs aren't versioned yet (ticket #151), so 
     
    594598                    echo "Generating new export for recipe: ${recipe}" 
    595599                    modules=$(conf_get_recipe $(conf_recipe_dir)/${recipe}) 
    596                     tar -hczf "${exportpath}/${recipe}.tgz" -C "${WORK_PATH}" --exclude='*.svn*' "meta/meta.fdb" "meta/recipes/${recipe}" $(for module in ${modules}; do echo "meta/${module}.fdb"; done) ${modules} || return 1 
     600                    if ${CONF_EXPORT_FILEDB_PLUS_SVN}; then 
     601                        tar -hczf "${exportpath}/${recipe}.tgz" -C "${WORK_PATH}" "meta/meta.fdb" "meta/recipes/${recipe}" $(for module in ${modules}; do echo "meta/${module}.fdb"; done) ${modules} || return 1 
     602                    else 
     603                        tar -hczf "${exportpath}/${recipe}.tgz" -C "${WORK_PATH}" --exclude='*.svn*' "meta/meta.fdb" "meta/recipes/${recipe}" $(for module in ${modules}; do echo "meta/${module}.fdb"; done) ${modules} || return 1 
     604                    fi 
    597605                done 
    598606            else 
Note: See TracChangeset for help on using the changeset viewer.