Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=72dfdaf42c091f44741b7c367da3de12b6a1e6c2

commit 72dfdaf42c091f44741b7c367da3de12b6a1e6c2
Author: VMiklos <[EMAIL PROTECTED]>
Date:   Tue Oct 2 22:36:08 2007 +0200

scm.sh: support _F_scm_tag for subversion

diff --git a/source/include/scm.sh b/source/include/scm.sh
index 801c64f..982b616 100644
--- a/source/include/scm.sh
+++ b/source/include/scm.sh
@@ -67,7 +67,7 @@
# * _F_scm_url: url of the repo - required
# * _F_scm_password: password of the repo - required for cvs
# * _F_scm_module: name of the module to check out - required for cvs
-# * _F_scm_tag: name of the tag/branch to use - implemented for darcs/cvs/git
+# * _F_scm_tag: name of the tag/branch to use - implemented for 
darcs/cvs/svn/git
###

# slice the / suffix if there is any
@@ -128,7 +128,11 @@ Funpack_scm()
fi
Fcd $_F_scm_module
elif [ "$_F_scm_type" == "subversion" ]; then
-               svn co $_F_scm_url $pkgname || Fdie
+               if [ -z "$_F_scm_tag" ]; then
+                       svn co $_F_scm_url $pkgname || Fdie
+               else
+                       svn co -r $_F_scm_tag $_F_scm_url $pkgname || Fdie
+               fi
Fcd $pkgname
elif [ "$_F_scm_type" == "git" ]; then
if [ -d $pkgname ]; then
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to