diff options
-rw-r--r-- | trunk/src/createpkg | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg index e8047fc..3962ccf 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -334,7 +334,17 @@ function create_repo_folder { local folder="$1" - if [ ! -e $folder/$SUBFOLDER ]; then + if [ ! -d "$folder" ]; then + if [ -d "$folder/../.svn" ] && ! svn_check $folder; then + ( + cd $folder/.. + chown_svn $folder/.. && chgrp_svn $folder/.. + svn_mkdir $folder/$SUBFOLDER + ) + else + mkdir -p $folder/$SUBFOLDER + fi + elif [ ! -e $folder/$SUBFOLDER ]; then if [ -d "$folder/.svn" ] && ! svn_check $folder/$SUBFOLDER; then ( cd $folder |