]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
createpkg: fix at remove_old_package_data
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 25 Sep 2009 17:35:55 +0000 (17:35 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 25 Sep 2009 17:35:55 +0000 (17:35 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@819 04377dda-e619-0410-9926-eae83683ac58

trunk/src/createpkg

index cddf6ba19bcbfeb293b8109a31b89d7d0e3ecf9e..ebebf666da1d54b480c6ba54063a63a475ccc4a5 100644 (file)
@@ -432,12 +432,14 @@ function remove_old_package_data {
         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
-        if [ "`package_version $candidate`" != "$PACKAGE_VERSION" ] || \
-           [ "`package_arch $candidate`" != "$PACKAGE_ARCH" ] || \
-           [ "`package_build $candidate`" != "$PACKAGE_BUILD" ] || \
-           [ "`package_ext $candidate`" != "$PACKAGE_EXT" ] || \
-           [ "`dirname $candidate | sed -e 's/^\.\///'`" != "`dirname $SUBFOLDER/$PKG_NAME | sed -e 's/^\.\///'`" ]; then
-          svn_del $file
+        if [ "`package_name $candidate`" == "$PACKAGE" ]; then
+          if [ "`package_version $candidate`" != "$PACKAGE_VERSION" ] || \
+             [ "`package_arch $candidate`" != "$PACKAGE_ARCH" ] || \
+             [ "`package_build $candidate`" != "$PACKAGE_BUILD" ] || \
+             [ "`package_ext $candidate`" != "$PACKAGE_EXT" ] || \
+             [ "`dirname $candidate | sed -e 's/^\.\///'`" != "`dirname $SUBFOLDER/$PKG_NAME | sed -e 's/^\.\///'`" ]; then
+            svn_del $file
+          fi
         fi
       done