]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fix on create_repo_folder
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 15 Dec 2008 12:59:56 +0000 (12:59 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 15 Dec 2008 12:59:56 +0000 (12:59 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@660 04377dda-e619-0410-9926-eae83683ac58

trunk/src/createpkg

index e8047fcd7d0204e1b3fa26778aeca8f91fbe1852..3962ccfed143702804673848f238c95bbe832480 100644 (file)
@@ -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