Changeset 4822


Ignore:
Timestamp:
11/25/08 05:51:30 (9 years ago)
Author:
tick
Message:

opkg: only cache the packages

thanks Werner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/opkg/libopkg/opkg_download.c

    r4808 r4822  
    3434#include "opkg_defines.h" 
    3535 
    36 static int do_download(opkg_conf_t *conf, const char *src, 
     36int opkg_download(opkg_conf_t *conf, const char *src, 
    3737  const char *dest_file_name, curl_progress_func cb, void *data) 
    3838{ 
     
    137137} 
    138138 
    139 int opkg_download(opkg_conf_t *conf, const char *src, 
     139static int opkg_download_cache(opkg_conf_t *conf, const char *src, 
    140140  const char *dest_file_name, curl_progress_func cb, void *data) 
    141141{ 
     
    145145 
    146146    if (!conf->cache || str_starts_with(src, "file:")) { 
    147         err = do_download(conf, src, dest_file_name, cb, data); 
     147        err = opkg_download(conf, src, dest_file_name, cb, data); 
    148148        goto out1; 
    149149    } 
     
    157157        opkg_message(conf, OPKG_NOTICE, "Copying %s\n", cache_location); 
    158158    else { 
    159         err = do_download(conf, src, cache_location, cb, data); 
     159        err = opkg_download(conf, src, cache_location, cb, data); 
    160160        if (err) { 
    161161            (void) unlink(cache_location); 
     
    204204    sprintf_alloc(&pkg->local_filename, "%s/%s", dir, stripped_filename); 
    205205 
    206     err = opkg_download(conf, url, pkg->local_filename, NULL, NULL); 
     206    err = opkg_download_cache(conf, url, pkg->local_filename, NULL, NULL); 
    207207    free(url); 
    208208 
Note: See TracChangeset for help on using the changeset viewer.