diff options
-rw-r--r-- | trunk/src/createpkg | 2 |
1 files changed, 1 insertions, 1 deletions
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 |