From 6aeb4765eca487778c2fd25b0243f39db6b0ef47 Mon Sep 17 00:00:00 2001 From: rhatto Date: Mon, 19 Jan 2009 17:07:12 +0000 Subject: fix on check_and_create_svn_repo git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@761 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trunk/lib') diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index d75c6a3..e2d99ea 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -939,6 +939,10 @@ function check_and_create_svn_repo { repository_type="`echo $repository | cut -d : -f 1`" repository_path="`echo $repository | cut -d : -f 2`" + if ! echo $repository | grep -q ":"; then + repository="file://$repository" + fi + if [ "$repository_type" == "file" ] && [ ! -d "$repository_path" ]; then echo "Creating subversion repository $repository..." mkdir -p `dirname $repository_path` -- cgit v1.2.3