aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-03 03:10:24 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-03 03:10:24 +0000
commit649cce04c827529f8e94cc4e6cabe4a73ca83a7b (patch)
tree3f2f4691a260256858913c5935bb4058d4c17832 /trunk
parent65a0b7749842e01df429976df4851ef394fded4e (diff)
downloadsimplepkg-649cce04c827529f8e94cc4e6cabe4a73ca83a7b.tar.gz
simplepkg-649cce04c827529f8e94cc4e6cabe4a73ca83a7b.tar.bz2
fix in svn_check
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@630 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r--trunk/lib/common.sh6
-rw-r--r--trunk/src/createpkg1
2 files changed, 6 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 4f61c46..4e73ea5 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -517,7 +517,11 @@ function svn_check {
folder="`dirname $1`"
file="`basename $1`"
- if [ -d "$folder/$file/.svn" ]; then
+ if [ ! -e "$folder/$file" ]; then
+
+ return 1
+
+ elif [ -d "$folder/$file/.svn" ]; then
return 0
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 41d860e..26e6564 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -265,6 +265,7 @@ function load_parameters {
COLOR_MODE="`eval_parameter COLOR_MODE none`"
CREATE_ARCH="`eval_parameter CREATE_ARCH $(default_arch)`"
CREATE_CLEANUP="`eval_parameter CREATE_CLEANUP yes`"
+ TMP="`eval_parameter TMP /tmp`"
REMOVE_OLD_PACKAGE="`eval_boolean_parameter REMOVE_OLD_PACKAGE $off`"
MOVE_BIN_PACKAGE="`eval_boolean_parameter MOVE_BIN_PACKAGE $off`"