From 7ccd081e2da12aa0a1a534bf2567951f3f945b47 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 28 Nov 2008 18:54:13 +0000 Subject: createpkg: deleting duplicated packages in different folders git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@609 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/createpkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'trunk') 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 -- cgit v1.2.3