diff options
author | Ismael Luceno | 2011-06-01 02:05:02 -0300 |
---|---|---|
committer | Ismael Luceno | 2011-06-01 02:05:02 -0300 |
commit | 2ebe798d57a967890328562f2dfecc1e8f4713f3 (patch) | |
tree | c2508181bce9d956f048ccfaf410a3ea550c215c | |
parent | 1cb17f0765602b1f3c042e75ee75682fd6cd3844 (diff) |
enna: use hg_download
-rwxr-xr-x | e-17/enna/DOWNLOAD | 43 | ||||
-rw-r--r-- | e-17/enna/HISTORY | 3 |
2 files changed, 6 insertions, 40 deletions
diff --git a/e-17/enna/DOWNLOAD b/e-17/enna/DOWNLOAD index 21418465b4..24a9860536 100755 --- a/e-17/enna/DOWNLOAD +++ b/e-17/enna/DOWNLOAD @@ -1,45 +1,8 @@ #once the hg download handler hits stable sorcery this DOWNLOAD script would #only need to be removed, SOURCE_URL is compatible with the planned hg handler -function my_url_hg_http_crack() { - - URL=$(url_strip_prefix "$1" hg_http) - HG_ROOT=$(echo $URL | sed "s#\(^[^/]*[^:]*\):.*#\1#") - HG_ROOT=http://$HG_ROOT - local HG_DIRECTORY_TAG=$(echo $URL | sed "s#^[^/]*[^:]*\(.*\)#\1#") - HG_DIRECTORY=$(echo $HG_DIRECTORY_TAG | cut -d : -f2) - local HG_TAGNAME=$(echo $HG_DIRECTORY_TAG | cut -d : -f3) - HG_TAG=${HG_TAGNAME:=default} - -} - if [[ "${VERSION}" != "mercurial" && "${VERSION}" != "$(date +%Y%m%d)" ]]; then - default_download && - return $? -fi && - -message "${MESSAGE_COLOR}Starting Mercurial checkout of" \ - "${FILE_COLOR}${SOURCE}${MESSAGE_COLOR}...${DEFAULT_COLOR}" && -my_url_hg_http_crack $SOURCE_URL && -if [[ -f $SOURCE_CACHE/$SOURCE ]]; then - message "${MESSAGE_COLOR}Previous source found unpacking...${DEFAULT_COLOR}" && - tar -jxf $SOURCE_CACHE/$SOURCE && - message "${MESSAGE_COLOR}Running hg pull...${DEFAULT_COLOR}" && - ( cd $HG_DIRECTORY && - echo hg pull $HG_ROOT && - hg pull $HG_ROOT && - echo hg update $HG_TAG && - hg update $HG_TAG ) + default_download else - message "${MESSAGE_COLOR}Running hg clone...${DEFAULT_COLOR}" - echo hg clone $HG_ROOT $HG_DIRECTORY - hg clone $HG_ROOT $HG_DIRECTORY && - ( cd $HG_DIRECTORY && - echo hg update $HG_TAG && - hg update $HG_TAG ) -fi && -message "${MESSAGE_COLOR}Generating tarball...${DEFAULT_COLOR}" && -tar -jcf $SOURCE $HG_DIRECTORY && -cp $SOURCE $SOURCE_CACHE/$SOURCE && -rm $SOURCE && -message "${MESSAGE_COLOR}Mercurial checkout complete...${DEFAULT_COLOR}" + hg_download +fi diff --git a/e-17/enna/HISTORY b/e-17/enna/HISTORY index 31c3dd18a5..47f3643cfd 100644 --- a/e-17/enna/HISTORY +++ b/e-17/enna/HISTORY @@ -1,3 +1,6 @@ +2011-06-01 Ismael Luceno <ismael@sourcemage.org> + * DOWNLOAD: use hg_download + 2010-03-03 Philippe "Puppet_Master" Caseiro <puppetmaster@sourcemage.com> * DEPENDS: Updating dependencies Removed dependency on SVN |