]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 01:04:39 +0000 (01:04 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 01:04:39 +0000 (01:04 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@568 04377dda-e619-0410-9926-eae83683ac58

trunk/src/createpkg

index 13796a32a1b3620528da02691ed2fdd379f516a6..b10cce0d9286831bfe281c407d3a9b656e31a4e2 100644 (file)
@@ -560,7 +560,7 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then
     PACKAGE_BUILD="`package_build $PKG_NAME`"
 
     # Using -mindepth 2 so it doesn't delete the new package
-    for file in `find . -mindepth 2 -name "$PACKAGE-*-*-*.*"`; do
+    for file in `find . -mindepth 2 -name "$PACKAGE-*-*-*.tgz" -o -name 'simplepkg-*-*-*.meta'`; do
       if svn_check $file; then
         # Just delete packages with different arch, version or build number
         if [ "`package_version $file`" != "$PACKAGE_VERSION" ] || \
@@ -591,7 +591,7 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then
 
   else
     # Using -mindepth 2 so it doesn't delete the new package
-    find $MAKEPKG_REPOS -mindepth 2 -name "$PACKAGE-*-*-*.*" -exec rm {} 2>/dev/null \;
+    find $MAKEPKG_REPOS -mindepth 2 -name "$PACKAGE-*-*-*.tgz" -o -name 'simplepkg-*-*-*.meta' -exec rm {} 2>/dev/null \;
     find $MAKEPKG_REPOS -name "$PACKAGE.slack-required" -exec rm {} 2>/dev/null \;
   fi
 fi