]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 01:21:37 +0000 (01:21 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 01:21:37 +0000 (01:21 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@571 04377dda-e619-0410-9926-eae83683ac58

trunk/src/createpkg

index a41e149860a1d865de9958b0715dc494f57ea718..19b2c71fa53c5dee9683afe151885b349a105906 100644 (file)
@@ -562,7 +562,7 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then
     # Using -mindepth 2 so it doesn't delete the new package
     for file in `find . -mindepth 2 -name "$PACKAGE-*-*-*.tgz" -o -name 'simplepkg-*-*-*.meta'`; do
       if svn_check $file; then
-        file="`basename $file .meta`" # strip this otherwise package info functions will fail
+        file="`echo $file | sed -e 's/\.meta/\.tgz/'`" # otherwise package info functions will fail
         # Just delete packages with different arch, version or build number
         if [ "`package_version $file`" != "$PACKAGE_VERSION" ] || \
            [ "`package_arch $file`" != "$PACKAGE_ARCH" ] || \