aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2006-12-10 22:39:25 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2006-12-10 22:39:25 +0000
commitb467d6ba61cf820d62e9a0128c5fa1dbcf342b74 (patch)
tree721b150595f49d83ef402f1a1177a95eee2e2415 /src
parent7efce73e562fe07ad3b3dd2af4bda912babd1920 (diff)
downloadsimplepkg-b467d6ba61cf820d62e9a0128c5fa1dbcf342b74.tar.gz
simplepkg-b467d6ba61cf820d62e9a0128c5fa1dbcf342b74.tar.bz2
simplaret: simplaret_search_and_download_patch fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@67 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/simplaret b/src/simplaret
index 018e2f4..bd50712 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -448,8 +448,7 @@ function simplaret_search_and_download_patch {
if [ ! -z "$installed_packs" ]; then
for installed in $installed_packs; do
- if [[ "$candidate" == "`package_name $installed.tgz`" ]]; then
- echo "package $candidate already installed in $root ($installed)"
+ if [[ "`package_name $candidate`" == "`package_name $installed.tgz`" ]]; then
package_installed="1"
break
fi
@@ -457,7 +456,9 @@ function simplaret_search_and_download_patch {
# if the package is installed, download the patch
if [[ "$package_installed" != "1" ]]; then
- simplaret_get $candidate
+ # TODO: verificar se eh a mesma versao e build number?
+ # DOWNLOAD_EVEN_IF_APPLIED?
+ simplaret_get `package_name $candidate`
DOWNLOADED_PATCHES="$DOWNLOADED_PATCHES $candidate " # the ending space is important
fi