diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-19 17:07:12 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-19 17:07:12 +0000 |
commit | 6aeb4765eca487778c2fd25b0243f39db6b0ef47 (patch) | |
tree | 0e05d7265512f7be307701c29f5b26e093c97847 | |
parent | 46c7ff331677e4f4250b0139d40a8f6a3e688e9b (diff) | |
download | simplepkg-6aeb4765eca487778c2fd25b0243f39db6b0ef47.tar.gz simplepkg-6aeb4765eca487778c2fd25b0243f39db6b0ef47.tar.bz2 |
fix on check_and_create_svn_repo
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@761 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r-- | trunk/lib/common.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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` |