From 0942c122dd82c93b83a7315972ca1db6d077f6ba Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 20 Sep 2009 13:38:39 +0000 Subject: createpkg: fixing remove_old_package_data git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@818 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/createpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/createpkg b/trunk/src/createpkg index edb94c3..cddf6ba 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -428,7 +428,7 @@ function remove_old_package_data { cd $makepkg_repos # Using -mindepth 2 so it doesn't delete the new PACKAGE - for file in `eval find . -mindepth 2 $(pkg_ext_find $PACKAGE-*-*-*) -o -name "$PACKAGE-*-*-*.meta" -o -name "$PACKAGE-*-*-*.*.asc"`; do + for file in `find . -mindepth 2 -name "$PACKAGE-*-*-*.*"`; do candidate="`echo $file | sed -e 's/\.meta$/\.tgz/'`" # otherwise PACKAGE info functions can fail candidate="`echo $candidate | sed -e 's/\.asc$//'`" # otherwise PACKAGE info functions can fail # Just delete packages with different arch, version, build number or folder -- cgit v1.2.3