Changeset 593 for trunk


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

Introduce option CONF_EXPORT_FILEDB_PLUS_SVN.

This allows a single confexport server to support multiple versions of
confsync clients by including both the new filedb metadata format and
also legacy Subversion metadata. Upgraded confsync clients will
automatically prefer to use the filedb metadata when it is available.

Fixes #155

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman.conf.5.in

    r585 r593  
    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. 
  • trunk/confman.conf.in

    r585 r593  
    8686CONF_EXPORT_INCREMENTAL_LN="false" 
    8787CONF_EXPORT_FILEDB="false" 
     88CONF_EXPORT_FILEDB_PLUS_SVN="false" 
    8889EXPORT_REPO_PROTOCOL="" 
    8990EXPORT_REPO_HOSTNAME="" 
  • trunk/confmanlib.sh.in

    r588 r593  
    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.