]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 14:03:18 +0000 (14:03 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 14:03:18 +0000 (14:03 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@596 04377dda-e619-0410-9926-eae83683ac58

trunk/src/createpkg

index 481bc54ed3356cb8a8855d92c91bded433de2aa0..caa746feb63fcca632106939bd8f33e2fc56a0a6 100644 (file)
@@ -526,13 +526,14 @@ PKG_NAME="`ls -1 -c $MAKEPKG_REPOS/$PACKAGE-*-*-*.tgz | head -n 1 | xargs basena
 
 # Create repository directory
 if [ ! -e $NEW_REPOS ]; then
-  mkdir -p $NEW_REPOS
   if [ -d "$MAKEPKG_REPOS/.svn" ] && ! svn_check $NEW_REPOS; then
     cwd="`pwd`"
     cd $MAKEPKG_REPOS
     chown_svn $MAKEPKG_REPOS && chgrp_svn $MAKEPKG_REPOS
     svn_mkdir $( echo ${SCRIPT_BASE#$SLACKBUILDS_DIR/} )
     cd $cwd
+  else
+    mkdir -p $NEW_REPOS
   fi
 fi