source: branches/backfire/package/opkg/patches/009-remove-upgrade-all.patch @ 25743

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

[backfire] package: sync opkg with trunk

File size: 1.5 KB
  • libopkg/opkg_cmd.c

    a b opkg_upgrade_cmd(int argc, char **argv) 
    508508                            err = -1; 
    509509               } 
    510510          } 
    511      } else { 
    512           pkg_vec_t *installed = pkg_vec_alloc(); 
    513  
    514           pkg_info_preinstall_check(); 
    515  
    516           pkg_hash_fetch_all_installed(installed); 
    517           for (i = 0; i < installed->len; i++) { 
    518                pkg = installed->pkgs[i]; 
    519                if (opkg_upgrade_pkg(pkg)) 
    520                        err = -1; 
    521           } 
    522           pkg_vec_free(installed); 
    523511     } 
    524512 
    525513     if (opkg_configure_packages(NULL)) 
    opkg_print_architecture_cmd(int argc, ch 
    12151203   array for easier maintenance */ 
    12161204static opkg_cmd_t cmds[] = { 
    12171205     {"update", 0, (opkg_cmd_fun_t)opkg_update_cmd, PFM_DESCRIPTION|PFM_SOURCE}, 
    1218      {"upgrade", 0, (opkg_cmd_fun_t)opkg_upgrade_cmd, PFM_DESCRIPTION|PFM_SOURCE}, 
     1206     {"upgrade", 1, (opkg_cmd_fun_t)opkg_upgrade_cmd, PFM_DESCRIPTION|PFM_SOURCE}, 
    12191207     {"list", 0, (opkg_cmd_fun_t)opkg_list_cmd, PFM_SOURCE}, 
    12201208     {"list_installed", 0, (opkg_cmd_fun_t)opkg_list_installed_cmd, PFM_SOURCE}, 
    12211209     {"list-installed", 0, (opkg_cmd_fun_t)opkg_list_installed_cmd, PFM_SOURCE}, 
  • src/opkg-cl.c

    a b usage() 
    214214 
    215215        printf("\nPackage Manipulation:\n"); 
    216216        printf("\tupdate                        Update list of available packages\n"); 
    217         printf("\tupgrade                       Upgrade installed packages\n"); 
     217        printf("\tupgrade <pkgs>                Upgrade packages\n"); 
    218218        printf("\tinstall <pkgs>                Install package(s)\n"); 
    219219        printf("\tconfigure <pkgs>      Configure unpacked package(s)\n"); 
    220220        printf("\tremove <pkgs|regexp>  Remove package(s)\n"); 
Note: See TracBrowser for help on using the repository browser.