aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/src/createpkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 481bc54..caa746f 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -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