1 --- a/libopkg/opkg_cmd.c
2 +++ b/libopkg/opkg_cmd.c
4 opkg_install_by_name(arg);
8 - pkg_vec_t *installed = pkg_vec_alloc();
10 - pkg_info_preinstall_check();
12 - pkg_hash_fetch_all_installed(installed);
13 - for (i = 0; i < installed->len; i++) {
14 - pkg = installed->pkgs[i];
15 - opkg_upgrade_pkg(pkg);
17 - pkg_vec_free(installed);
20 opkg_configure_packages(NULL);
22 array for easier maintenance */
23 static opkg_cmd_t cmds[] = {
24 {"update", 0, (opkg_cmd_fun_t)opkg_update_cmd, PFM_DESCRIPTION|PFM_SOURCE},
25 - {"upgrade", 0, (opkg_cmd_fun_t)opkg_upgrade_cmd, PFM_DESCRIPTION|PFM_SOURCE},
26 + {"upgrade", 1, (opkg_cmd_fun_t)opkg_upgrade_cmd, PFM_DESCRIPTION|PFM_SOURCE},
27 {"list", 0, (opkg_cmd_fun_t)opkg_list_cmd, PFM_SOURCE},
28 {"list_installed", 0, (opkg_cmd_fun_t)opkg_list_installed_cmd, PFM_SOURCE},
29 {"list-installed", 0, (opkg_cmd_fun_t)opkg_list_installed_cmd, PFM_SOURCE},