Changeset 4448
- Timestamp:
- 05/22/08 11:24:48 (5 years ago)
- Location:
- trunk/src/target/opkg/libopkg
- Files:
-
- 7 edited
-
opkg.c (modified) (1 diff)
-
opkg_cmd.c (modified) (1 diff)
-
opkg_conf.c (modified) (3 diffs)
-
opkg_conf.h (modified) (1 diff)
-
pkg.c (modified) (2 diffs)
-
pkg.h (modified) (1 diff)
-
pkg_parse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/opkg/libopkg/opkg.c
r4443 r4448 236 236 a->noaction = c->noaction; 237 237 a->query_all = c->query_all; 238 a->multiple_providers = c->multiple_providers;239 238 a->verbosity = c->verbosity; 240 239 -
trunk/src/target/opkg/libopkg/opkg_cmd.c
r4404 r4448 591 591 for (i=0; i < argc; i++) { 592 592 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); 598 594 if (err == OPKG_PKG_HAS_NO_CANDIDATE) { 599 595 opkg_message(conf, OPKG_ERROR, -
trunk/src/target/opkg/libopkg/opkg_conf.c
r4443 r4448 54 54 { "ftp_proxy", OPKG_OPT_TYPE_STRING, &conf->ftp_proxy }, 55 55 { "http_proxy", OPKG_OPT_TYPE_STRING, &conf->http_proxy }, 56 { "multiple_providers", OPKG_OPT_TYPE_BOOL, &conf->multiple_providers },57 56 { "no_proxy", OPKG_OPT_TYPE_STRING, &conf->no_proxy }, 58 57 { "test", OPKG_OPT_TYPE_INT, &conf->noaction }, … … 146 145 conf->offline_root_pre_script_cmd = NULL; 147 146 conf->offline_root_post_script_cmd = NULL; 148 conf->multiple_providers = 0;149 147 conf->verbosity = 1; 150 148 conf->noaction = 0; … … 264 262 if (args->query_all) { 265 263 conf->query_all = 1; 266 }267 if (args->multiple_providers) {268 conf->multiple_providers = 1;269 264 } 270 265 if (args->verbosity != conf->verbosity) { -
trunk/src/target/opkg/libopkg/opkg_conf.h
r4443 r4448 64 64 int force_removal_of_essential_packages; 65 65 int nodeps; /* do not follow dependences */ 66 int multiple_providers;67 66 char *offline_root; 68 67 char *offline_root_pre_script_cmd; -
trunk/src/target/opkg/libopkg/pkg.c
r4443 r4448 95 95 pkg->version = NULL; 96 96 pkg->revision = NULL; 97 pkg->familiar_revision = NULL;98 97 pkg->dest = NULL; 99 98 pkg->src = NULL; … … 165 164 free(pkg->version); 166 165 pkg->version = NULL; 167 /* revision and familiar_revision sharestorage with version, so166 /* revision shares storage with version, so 168 167 don't free */ 169 168 pkg->revision = NULL; 170 pkg->familiar_revision = NULL;171 169 /* owned by opkg_conf_t */ 172 170 pkg->dest = NULL; -
trunk/src/target/opkg/libopkg/pkg.h
r4357 r4448 118 118 char *version; 119 119 char *revision; 120 char *familiar_revision;121 120 pkg_src_t *src; 122 121 pkg_dest_t *dest; -
trunk/src/target/opkg/libopkg/pkg_parse.c
r4443 r4448 139 139 140 140 pkg->revision = ""; 141 pkg->familiar_revision = "";142 141 143 142 if (!pkg->version) … … 158 157 } 159 158 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 168 159 return 0; 169 160 }
Note: See TracChangeset
for help on using the changeset viewer.
