diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-28 01:04:39 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-28 01:04:39 +0000 |
commit | 8550caac2e42c2f5f31a0ecb280dfed2b80edcb5 (patch) | |
tree | 5d1091ffe60c0136c431c12bfaf2d0dc8a8cf1f9 | |
parent | 566db3ce0820f289f22deb33c850e6d469473339 (diff) | |
download | simplepkg-8550caac2e42c2f5f31a0ecb280dfed2b80edcb5.tar.gz simplepkg-8550caac2e42c2f5f31a0ecb280dfed2b80edcb5.tar.bz2 |
fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@568 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r-- | trunk/src/createpkg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg index 13796a3..b10cce0 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -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 |