diff options
-rw-r--r-- | trunk/lib/common.sh | 6 | ||||
-rw-r--r-- | trunk/src/createpkg | 1 |
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`" |