summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2011-06-01 00:32:30 -0300
committerIsmael Luceno2011-06-01 00:32:30 -0300
commit6befb0f9868430054a6a69ad107225783a35a091 (patch)
tree7fa61413a47020f09f9333f612b3e89066ac006a
parent18250c7436922b7a2f8994bb825a4a4dda05a309 (diff)
pymsnt: use hg_download
-rwxr-xr-xpython-pypi/pymsnt/DOWNLOAD65
-rw-r--r--python-pypi/pymsnt/HISTORY3
2 files changed, 5 insertions, 63 deletions
diff --git a/python-pypi/pymsnt/DOWNLOAD b/python-pypi/pymsnt/DOWNLOAD
index ce3191ac73..89c3683452 100755
--- a/python-pypi/pymsnt/DOWNLOAD
+++ b/python-pypi/pymsnt/DOWNLOAD
@@ -1,66 +1,5 @@
-set +x
-function url_hg_crack() {
-
- URL=$(url_strip_prefix "$1" hg_http)
- HG_ROOT=$(echo $URL | sed "s#\(^[^/]*[^:]*\):.*#\1#")
- local HG_MODULE_TAG=$(echo $URL | sed "s#^[^/]*[^:]*\(.*\)#\1#")
- HG_MODULE=$(echo $HG_MODULE_TAG | cut -d : -f2)
- local HG_TAGNAME=$(echo $HG_MODULE_TAG | cut -d : -f3)
- HG_TAG=${HG_TAGNAME:-tip}
-
-}
-
if [[ $PYMSNT_SCM == y ]]; then
-url_hg_crack ${SOURCE_URL}
-message "${MESSAGE_COLOR}Starting Mercurial checkout of" \
- "${FILE_COLOR}${SOURCE}${MESSAGE_COLOR}...${DEFAULT_COLOR}" &&
-if [[ -f $SOURCE_CACHE/${SOURCE} ]]
-then
- message "${MESSAGE_COLOR}Previous source found unpacking...${DEFAULT_COLOR}" &&
- tar -jxf $SOURCE_CACHE/${SOURCE} &&
- cd ${HG_MODULE} &&
- message "${MESSAGE_COLOR}Running Mercurial update...${DEFAULT_COLOR}" &&
- hg pull -u -r ${HG_TAG}
- cd ..
- message "${MESSAGE_COLOR}Done...${DEFAULT_COLOR}"
+ hg_download
else
- message "${MESSAGE_COLOR}Running initial Mercurial clone...${DEFAULT_COLOR}" &&
- hg clone -r${HG_TAG} "http://${HG_ROOT}" ${HG_MODULE}
- message "${MESSAGE_COLOR}Done...${DEFAULT_COLOR}"
-fi &&
-message "${MESSAGE_COLOR}Generating tarball...${DEFAULT_COLOR}" &&
-tar -jcf \
- ${SOURCE} \
- ${HG_MODULE} &&
-cp ${SOURCE} ${SOURCE_CACHE}/${SOURCE} &&
-rm ${SOURCE} &&
-message "${MESSAGE_COLOR}Mercurial checkout complete...${DEFAULT_COLOR}" &&
-# cleaning for the next one
-unset URL HG_ROOT HG_MODULE HG_TAG &&
-url_hg_crack ${SOURCE2_URL} &&
-message "${MESSAGE_COLOR}Starting Mercurial checkout of" \
- "${FILE_COLOR}${SOURCE2}${MESSAGE_COLOR}...${DEFAULT_COLOR}" &&
-if [[ -f $SOURCE_CACHE/${SOURCE2} ]]
-then
- message "${MESSAGE_COLOR}Previous source found unpacking...${DEFAULT_COLOR}" &&
- tar -jxf $SOURCE_CACHE/${SOURCE2} &&
- cd ${HG_MODULE} &&
- message "${MESSAGE_COLOR}Running Mercurial update...${DEFAULT_COLOR}" &&
- hg pull -u -r ${HG_TAG}
- cd ..
- message "${MESSAGE_COLOR}Done...${DEFAULT_COLOR}"
-else
- message "${MESSAGE_COLOR}Running initial Mercurial clone...${DEFAULT_COLOR}" &&
- hg clone -r${HG_TAG} "http://${HG_ROOT}" ${HG_MODULE}
- message "${MESSAGE_COLOR}Done...${DEFAULT_COLOR}"
-fi &&
-message "${MESSAGE_COLOR}Generating tarball...${DEFAULT_COLOR}" &&
-tar -jcf \
- ${SOURCE2} \
- ${HG_MODULE} &&
-cp ${SOURCE2} ${SOURCE_CACHE}/${SOURCE2} &&
-rm ${SOURCE2} &&
-message "${MESSAGE_COLOR}Mercurial checkout complete...${DEFAULT_COLOR}"
-else
- acquire_src ''
+ default_download
fi
diff --git a/python-pypi/pymsnt/HISTORY b/python-pypi/pymsnt/HISTORY
index 2e29a7796f..2504fbc377 100644
--- a/python-pypi/pymsnt/HISTORY
+++ b/python-pypi/pymsnt/HISTORY
@@ -1,3 +1,6 @@
+2011-06-01 Ismael Luceno <ismael@sourcemage.org>
+ * DOWNLOAD: use hg_download
+
2009-01-03 Andraž "ruskie" Levstik <ruskie@mages.ath.cx>
* PRE_BUILD: added for SCM version
* DETAILS: SCM version