diff options
author | puppetmaster <puppetmaster> | 2006-01-13 19:33:38 +0000 |
---|---|---|
committer | puppetmaster <puppetmaster> | 2006-01-13 19:33:38 +0000 |
commit | 76eadf3297b026875645dcd323c851df3f82df33 (patch) | |
tree | 474845afa69c087f6480a25e81a61dc9ff856bc3 | |
parent | adding some new files (diff) | |
download | sorcery-76eadf3297b026875645dcd323c851df3f82df33.tar.gz |
Adding real support for https and devel sorcery branchHEADSVN_Importmaster
-rw-r--r-- | var/lib/sorcery/modules/url_handlers/url_svn_https | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/var/lib/sorcery/modules/url_handlers/url_svn_https b/var/lib/sorcery/modules/url_handlers/url_svn_https index eac5c82..e145b66 100644 --- a/var/lib/sorcery/modules/url_handlers/url_svn_https +++ b/var/lib/sorcery/modules/url_handlers/url_svn_https @@ -3,18 +3,18 @@ ## ##=head1 SYNOPSIS ## -## Url handler functions for parsing subversion over http urls. +## Url handler functions for parsing subversion over https urls. ## ##=head1 DESCRIPTION ## -## This file contains functions for parsing svn_http urls. +## This file contains functions for parsing svn_https urls. ## ##=head1 SVN HTTP URL Format ## ## The sourcemage specific svn+ssh url is as follows: ## specific format was invented: ## -## svn_http://SVNURL:DIR_NAME +## svn_https://SVNURL:DIR_NAME ## ## The above url will download the latest version of the specified ## module (i.e., the HEAD revision). To specify a specific revision, @@ -22,13 +22,13 @@ ## ## svn://SVNURL:DIR_NAME:REVISION_TAG ## -## The SVNURL portion of the url will appear as a normal http url -## sans http:// prefix. +## The SVNURL portion of the url will appear as a normal https url +## sans https:// prefix. ## ## The DIR_NAME will be the tail element of the SOURCE_DIRECTORY. ## ## For more details, see the SVN manual at -## http://svnbook.red-bean.com/svnbook/ch03s04.html +## https://svnbook.red-bean.com/svnbook/ch03s04.html ## and url_svn. ## ##=head1 COPYRIGHT @@ -39,19 +39,19 @@ #--------------------------------------------------------------------- #--------------------------------------------------------------------- -##=item url_svn_http_bucketize +##=item url_svn_https_bucketize ## @param url ## -## Outputs svn as that is the dl handler for svn_http:// urls +## Outputs svn as that is the dl handler for svn_https:// urls #--------------------------------------------------------------------- -function url_svn_http_bucketize() { +function url_svn_https_bucketize() { echo svn } #--------------------------------------------------------------------- ##=item url_file_download <url> ## -## Parse the specified svn_http url. +## Parse the specified svn_https url. ## ## @Global URL ## @Global SVN_ROOT @@ -59,10 +59,10 @@ function url_svn_http_bucketize() { ## @Global SVN_TAG ## #--------------------------------------------------------------------- -function url_svn_http_crack() { +function url_svn_https_crack() { - URL=`url_strip_prefix "$1" svn_http` - SVN_ROOT=http://`echo $URL | sed "s#\(^[^/]*[^:]*\):.*#\1#"` + URL=`url_strip_prefix "$1" svn_https` + SVN_ROOT=https://`echo $URL | sed "s#\(^[^/]*[^:]*\):.*#\1#"` local SVN_MODULE_TAG=`echo $URL | sed "s#^[^/]*[^:]*\(.*\)#\1#"` SVN_MODULE=`echo $SVN_MODULE_TAG | cut -d : -f2` local SVN_TAGNAME=`echo $SVN_MODULE_TAG | cut -d : -f3` @@ -71,36 +71,36 @@ function url_svn_http_crack() { } #--------------------------------------------------------------------- -##=item url_svn_http_is_valid <url> +##=item url_svn_https_is_valid <url> ## ## Ensure that all the fields that should be parsed out from a url ## do indeed exist #--------------------------------------------------------------------- -function url_svn_http_is_valid() { +function url_svn_https_is_valid() { url_svn_is_valid "$@" } #--------------------------------------------------------------------- -##=item url_svn_http_hostname <url> +##=item url_svn_https_hostname <url> ## ## Get the hostname of the url ## #--------------------------------------------------------------------- -function url_svn_http_hostname() { - echo $1|sed 's#^svn_http://\([^/:]*\)[/:].*$#\1#' +function url_svn_https_hostname() { + echo $1|sed 's#^svn_https://\([^/:]*\)[/:].*$#\1#' } #--------------------------------------------------------------------- -##=item url_svn_http_netselect <url> +##=item url_svn_https_netselect <url> ## ## Gets a netselect type output for the url ## #--------------------------------------------------------------------- -function url_svn_http_netselect() { +function url_svn_https_netselect() { local tmp_hostname url_speed each for each in "$@" ; do - tmp_hostname=$(url_svn_http_hostname $each) + tmp_hostname=$(url_svn_https_hostname $each) # since we had to pull the url apart to give netselect # something it can understand we'll just pretend like # multiple A records wont exist for this host... |