]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
simplaret: another small fix :))))
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 9 Dec 2006 15:47:59 +0000 (15:47 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 9 Dec 2006 15:47:59 +0000 (15:47 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@53 04377dda-e619-0410-9926-eae83683ac58

src/simplaret

index ffc703d375e5cf89b17d95e480308cbe17504758..3221e9a036afb573e916c81a75da954f6c3deeca 100755 (executable)
@@ -359,7 +359,7 @@ function simplaret_get {
       candidate="`basename $file`"
       if [ "`package_name $candidate`" == "$1" ]; then
         # check if has the same version and build number, otherwise erase the old one
-        for result in `simplaret_search `basename $file tgz` -basename-only`; do
+        for result in `simplaret_search $candidate -basename-only`; do
           if [ "`package_name $candidate`" == "`package_name $result`" ] &&       \
              [ "`package_version $candidate`" == "`package_version $result`" ] && \
              [ "`package_build $candidate`" == "`package_build $result`" ]; then