source: trunk/package/opkg/patches/009-remove-upgrade-all.patch @ 26598

Last change on this file since 26598 was 26598, checked in by jow, 6 years ago

[package] opkg: update to r618

File size: 1.5 KB
  • libopkg/opkg_cmd.c

    a b opkg_upgrade_cmd(int argc, char **argv) 
    551551                            err = -1; 
    552552               } 
    553553          } 
    554      } else { 
    555           pkg_vec_t *installed = pkg_vec_alloc(); 
    556  
    557           pkg_info_preinstall_check(); 
    558  
    559           pkg_hash_fetch_all_installed(installed); 
    560           for (i = 0; i < installed->len; i++) { 
    561                pkg = installed->pkgs[i]; 
    562                if (opkg_upgrade_pkg(pkg)) 
    563                        err = -1; 
    564           } 
    565           pkg_vec_free(installed); 
    566554     } 
    567555 
    568556     if (opkg_configure_packages(NULL)) 
    opkg_print_architecture_cmd(int argc, ch 
    12581246   array for easier maintenance */ 
    12591247static opkg_cmd_t cmds[] = { 
    12601248     {"update", 0, (opkg_cmd_fun_t)opkg_update_cmd, PFM_DESCRIPTION|PFM_SOURCE}, 
    1261      {"upgrade", 0, (opkg_cmd_fun_t)opkg_upgrade_cmd, PFM_DESCRIPTION|PFM_SOURCE}, 
     1249     {"upgrade", 1, (opkg_cmd_fun_t)opkg_upgrade_cmd, PFM_DESCRIPTION|PFM_SOURCE}, 
    12621250     {"list", 0, (opkg_cmd_fun_t)opkg_list_cmd, PFM_SOURCE}, 
    12631251     {"list_installed", 0, (opkg_cmd_fun_t)opkg_list_installed_cmd, PFM_SOURCE}, 
    12641252     {"list-installed", 0, (opkg_cmd_fun_t)opkg_list_installed_cmd, PFM_SOURCE}, 
  • src/opkg-cl.c

    a b usage() 
    221221 
    222222        printf("\nPackage Manipulation:\n"); 
    223223        printf("\tupdate                        Update list of available packages\n"); 
    224         printf("\tupgrade                       Upgrade installed packages\n"); 
     224        printf("\tupgrade <pkgs>                Upgrade packages\n"); 
    225225        printf("\tinstall <pkgs>                Install package(s)\n"); 
    226226        printf("\tconfigure <pkgs>      Configure unpacked package(s)\n"); 
    227227        printf("\tremove <pkgs|regexp>  Remove package(s)\n"); 
Note: See TracBrowser for help on using the repository browser.