Changeset 4202
- Timestamp:
- 03/13/08 12:45:34 (5 years ago)
- File:
-
- 1 edited
-
trunk/src/target/opkg/libopkg/opkg_cmd.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/opkg/libopkg/opkg_cmd.c
r4200 r4202 292 292 free (tmp); 293 293 free(lists_dir); 294 295 #ifdef CONFIG_CLEAR_SW_INSTALL_FLAG296 #warning here297 /* clear SW_INSTALL on any package where state is SS_NOT_INSTALLED.298 * this is a hack to work around poor bookkeeping in old opkg upgrade code299 * -Jamey 3/1/03300 */301 {302 int i;303 int changed = 0;304 pkg_vec_t *available = pkg_vec_alloc();305 pkg_hash_fetch_available(&conf->pkg_hash, available);306 opkg_message(conf, OPKG_DEBUG, "Clearing SW_INSTALL for SS_NOT_INSTALLED packages.\n");307 for (i = 0; i < available->len; i++) {308 pkg_t *pkg = available->pkgs[i];309 if (pkg->state_want == SW_INSTALL && pkg->state_status == SS_NOT_INSTALLED) {310 opkg_message(conf, OPKG_DEBUG, "Clearing SW_INSTALL on package %s.\n", pkg->name);311 pkg->state_want = SW_UNKNOWN;312 changed = 1;313 }314 }315 pkg_vec_free(available);316 if (changed) {317 write_status_files_if_changed(conf);318 }319 }320 #endif321 294 322 295 return failures;
Note: See TracChangeset
for help on using the changeset viewer.
