aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-30 20:07:15 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-30 20:07:15 +0000
commit88e0aae3f1591848b1d8cc58e8cbd116b7905dea (patch)
tree8af6bee646ad220adebda21d9cab55d1bb808c64
parent0a74464a3dab5ae8ba3d8616cd2da1bd30b5f85d (diff)
downloadsimplepkg-88e0aae3f1591848b1d8cc58e8cbd116b7905dea.tar.gz
simplepkg-88e0aae3f1591848b1d8cc58e8cbd116b7905dea.tar.bz2
minor fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@788 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--trunk/lib/common.sh4
-rw-r--r--trunk/src/createpkg2
-rwxr-xr-xtrunk/src/templatepkg2
3 files changed, 4 insertions, 4 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 4bdd6b5..0f2edcd 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -934,7 +934,7 @@ function commit_changes {
}
-function check_svn_repo {
+function valid_svn_repo {
# check a svn repository URL
# usage: set_svn_repo <repository>
@@ -996,7 +996,7 @@ function repository_import {
return $EXIT_CODE
fi
- if ! check_svn_repo $repository; then
+ if ! valid_svn_repo $repository; then
echo "Invalid repository $repository, aborting."
EXIT_CODE="1"
return $EXIT_CODE
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 9563055..c83b673 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -290,7 +290,7 @@ function repository_checkout {
svn="$PACKAGES_SVN"
fi
- if check_svn_repo $svn; then
+ if valid_svn_repo $svn; then
svn checkout $svn $PACKAGES_DIR
chown_svn $PACKAGES_DIR && chgrp_svn $PACKAGES_DIR
if [ "$svn" != "$PACKAGES_SVN" ]; then
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index ba5946b..2d1ada2 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -170,7 +170,7 @@ function import_export_templates {
repository="$2"
preposition="from"
- check_svn_repo $repository
+ valid_svn_repo $repository
if [ ! -z "$2" ]; then