diff options
-rw-r--r-- | trunk/src/createpkg | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg index aae327a..c6df151 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -376,10 +376,11 @@ function remove_old_package_data { # Using -mindepth 2 so it doesn't delete the new PACKAGE for file in `find . -mindepth 2 -name "$PACKAGE-*-*-*.tgz" -o -name "$PACKAGE-*-*-*.meta"`; do candidate="`echo $file | sed -e 's/\.meta/\.tgz/'`" # otherwise PACKAGE info functions can fail - # Just delete packages with different arch, version or build number + # Just delete packages with different arch, version, build number or folder if [ "`package_version $candidate`" != "$PACKAGE_VERSION" ] || \ [ "`package_arch $candidate`" != "$PACKAGE_ARCH" ] || \ - [ "`package_build $candidate`" != "$PACKAGE_BUILD" ]; then + [ "`package_build $candidate`" != "$PACKAGE_BUILD" ] || \ + [ "`dirname $candidate`" != "`dirname $makepkg_repos/$SUBFOLDER/$PKG_NAME`" ]; then svn_del $file fi done |