Changeset 4202


Ignore:
Timestamp:
03/13/08 12:45:34 (5 years ago)
Author:
thomas
Message:

opkg: Remove unused CONFIG_CLEAR_SW_INSTALL_FLAG conditional code

File:
1 edited

Legend:

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

    r4200 r4202  
    292292     free (tmp); 
    293293     free(lists_dir); 
    294  
    295 #ifdef CONFIG_CLEAR_SW_INSTALL_FLAG 
    296 #warning here 
    297      /* 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 code  
    299       * -Jamey 3/1/03 
    300       */ 
    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 #endif 
    321294 
    322295     return failures; 
Note: See TracChangeset for help on using the changeset viewer.