From 88e0aae3f1591848b1d8cc58e8cbd116b7905dea Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 30 Jan 2009 20:07:15 +0000 Subject: minor fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@788 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 4 ++-- trunk/src/createpkg | 2 +- trunk/src/templatepkg | 2 +- 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 @@ -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 -- cgit v1.2.3