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

trunk/src/createpkg

index 70bc4d5f9890e37798393c67850cb110e51969bf..2a381f47bb52557633e43720035d0b787c1ce2ec 100644 (file)
@@ -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