[Fai-commit] r4296 - trunk/lib
lange at alioth.debian.org
lange at alioth.debian.org
Sun Jun 10 14:35:40 UTC 2007
Author: lange
Date: 2007-06-10 14:35:40 +0000 (Sun, 10 Jun 2007)
New Revision: 4296
Modified:
trunk/lib/get-config-dir-svn
Log:
add support for svn url's without username (closes: #415875)
Modified: trunk/lib/get-config-dir-svn
===================================================================
--- trunk/lib/get-config-dir-svn 2007-06-10 11:38:31 UTC (rev 4295)
+++ trunk/lib/get-config-dir-svn 2007-06-10 14:35:40 UTC (rev 4296)
@@ -10,6 +10,7 @@
### END SUBROUTINE INFO
# matched string: "svn://user@host/svnpath"
+# strings without user@ are processed below
protocol=$(expr match "$FAI_CONFIG_SRC" '\([^:]*\)://')
username=$(expr match "$FAI_CONFIG_SRC" '[^:]*://\([^@]*\)@')
svnpath=$(expr match "$FAI_CONFIG_SRC" '[^:]*://[^@]\+@\([^[:space:]]\+\)')
@@ -34,6 +35,7 @@
esac
[ -n "$username" ] && user="--username $username"
+[ -z "$username" ] && svnurl=$FAI_CONFIG_SRC # if no user is specified
if [ -d "$FAI/.svn" ] ; then
echo "Updating SVN in $FAI"
More information about the Fai-commit
mailing list