Changeset 4448


Ignore:
Timestamp:
05/22/08 11:24:48 (5 years ago)
Author:
thomas
Message:

opkg: remove redundant multiple_providers option and also remove redundant familiar_revision pointer from the pkg struct

Location:
trunk/src/target/opkg/libopkg
Files:
7 edited

Legend:

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

    r4443 r4448  
    236236  a->noaction = c->noaction; 
    237237  a->query_all = c->query_all; 
    238   a->multiple_providers = c->multiple_providers; 
    239238  a->verbosity = c->verbosity; 
    240239 
  • trunk/src/target/opkg/libopkg/opkg_cmd.c

    r4404 r4448  
    591591     for (i=0; i < argc; i++) { 
    592592          arg = argv[i]; 
    593           if (conf->multiple_providers) 
    594                err = opkg_install_multi_by_name(conf, arg); 
    595           else{ 
    596                err = opkg_install_by_name(conf, arg); 
    597           } 
     593          err = opkg_install_by_name(conf, arg); 
    598594          if (err == OPKG_PKG_HAS_NO_CANDIDATE) { 
    599595               opkg_message(conf, OPKG_ERROR, 
  • trunk/src/target/opkg/libopkg/opkg_conf.c

    r4443 r4448  
    5454          { "ftp_proxy", OPKG_OPT_TYPE_STRING, &conf->ftp_proxy }, 
    5555          { "http_proxy", OPKG_OPT_TYPE_STRING, &conf->http_proxy }, 
    56           { "multiple_providers", OPKG_OPT_TYPE_BOOL, &conf->multiple_providers }, 
    5756          { "no_proxy", OPKG_OPT_TYPE_STRING, &conf->no_proxy }, 
    5857          { "test", OPKG_OPT_TYPE_INT, &conf->noaction }, 
     
    146145     conf->offline_root_pre_script_cmd = NULL; 
    147146     conf->offline_root_post_script_cmd = NULL; 
    148      conf->multiple_providers = 0; 
    149147     conf->verbosity = 1; 
    150148     conf->noaction = 0; 
     
    264262     if (args->query_all) { 
    265263          conf->query_all = 1; 
    266      } 
    267      if (args->multiple_providers) { 
    268           conf->multiple_providers = 1; 
    269264     } 
    270265     if (args->verbosity != conf->verbosity) { 
  • trunk/src/target/opkg/libopkg/opkg_conf.h

    r4443 r4448  
    6464     int force_removal_of_essential_packages; 
    6565     int nodeps; /* do not follow dependences */ 
    66      int multiple_providers; 
    6766     char *offline_root; 
    6867     char *offline_root_pre_script_cmd; 
  • trunk/src/target/opkg/libopkg/pkg.c

    r4443 r4448  
    9595     pkg->version = NULL; 
    9696     pkg->revision = NULL; 
    97      pkg->familiar_revision = NULL; 
    9897     pkg->dest = NULL; 
    9998     pkg->src = NULL; 
     
    165164     free(pkg->version); 
    166165     pkg->version = NULL; 
    167      /* revision and familiar_revision share storage with version, so 
     166     /* revision shares storage with version, so 
    168167        don't free */ 
    169168     pkg->revision = NULL; 
    170      pkg->familiar_revision = NULL; 
    171169     /* owned by opkg_conf_t */ 
    172170     pkg->dest = NULL; 
  • trunk/src/target/opkg/libopkg/pkg.h

    r4357 r4448  
    118118     char *version; 
    119119     char *revision; 
    120      char *familiar_revision; 
    121120     pkg_src_t *src; 
    122121     pkg_dest_t *dest; 
  • trunk/src/target/opkg/libopkg/pkg_parse.c

    r4443 r4448  
    139139 
    140140  pkg->revision = ""; 
    141   pkg->familiar_revision = ""; 
    142141 
    143142  if (!pkg->version) 
     
    158157  } 
    159158 
    160 /* 
    161   fprintf(stderr,"Parsed version: %lu, %s, %s, %s\n", 
    162           pkg->epoch, 
    163           pkg->version, 
    164           pkg->revision, 
    165           pkg->familiar_revision); 
    166 */ 
    167            
    168159  return 0; 
    169160} 
Note: See TracChangeset for help on using the changeset viewer.