aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/src/createpkg6
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 70bc4d5..2a381f4 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -580,8 +580,6 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then
cd $cwd
- svn_remove_empty_folders .
-
else
# Using -mindepth 2 so it doesn't delete the new package
find $MAKEPKG_REPOS -mindepth 2 -name "$PACKAGE-*-*-*.tgz" -o -name "$PACKAGE-*-*-*.meta" -exec rm {} 2>/dev/null \;
@@ -589,6 +587,10 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then
fi
fi
+
+# General cleanup
+svn_remove_empty_folders $MAKEPKG_REPOS
+
# Move package to SlackBuilds-like tree
if [ $MOVE_BIN_PACKAGE -eq $on ]; then