diff options
author | Alexandros C. Couloumbis <alex@ozo.com> | 2010-09-13 08:13:36 +0000 |
---|---|---|
committer | Alexandros C. Couloumbis <alex@ozo.com> | 2010-09-13 08:13:36 +0000 |
commit | 1e830d03cb0c1bcc91e01f14a834f551f3930599 (patch) | |
tree | bbe18e787173449daeea51f5c7868ccbc7ad422e /package/opkg/patches/010-remove-flag.patch | |
parent | 9cfb522a7dfcbd5fb1c9b4555026be56f069b143 (diff) | |
download | master-187ad058-1e830d03cb0c1bcc91e01f14a834f551f3930599.tar.gz master-187ad058-1e830d03cb0c1bcc91e01f14a834f551f3930599.tar.bz2 master-187ad058-1e830d03cb0c1bcc91e01f14a834f551f3930599.zip |
package/opkg: update to r563
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23050 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/opkg/patches/010-remove-flag.patch')
-rw-r--r-- | package/opkg/patches/010-remove-flag.patch | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/package/opkg/patches/010-remove-flag.patch b/package/opkg/patches/010-remove-flag.patch deleted file mode 100644 index 6659c29375..0000000000 --- a/package/opkg/patches/010-remove-flag.patch +++ /dev/null @@ -1,60 +0,0 @@ ---- a/libopkg/opkg_cmd.c -+++ b/libopkg/opkg_cmd.c -@@ -745,49 +745,6 @@ opkg_remove_cmd(int argc, char **argv) - } - - static int --opkg_flag_cmd(int argc, char **argv) --{ -- int i; -- pkg_t *pkg; -- const char *flags = argv[0]; -- -- signal(SIGINT, sigint_handler); -- -- for (i=1; i < argc; i++) { -- if (conf->restrict_to_default_dest) { -- pkg = pkg_hash_fetch_installed_by_name_dest(argv[i], -- conf->default_dest); -- } else { -- pkg = pkg_hash_fetch_installed_by_name(argv[i]); -- } -- -- if (pkg == NULL) { -- opkg_msg(ERROR, "Package %s is not installed.\n", argv[i]); -- continue; -- } -- if (( strcmp(flags,"hold")==0)||( strcmp(flags,"noprune")==0)|| -- ( strcmp(flags,"user")==0)||( strcmp(flags,"ok")==0)) { -- pkg->state_flag = pkg_state_flag_from_str(flags); -- } -- -- /* -- * Useful if a package is installed in an offline_root, and -- * should be configured by opkg-cl configure at a later date. -- */ -- if (( strcmp(flags,"installed")==0)||( strcmp(flags,"unpacked")==0)){ -- pkg->state_status = pkg_state_status_from_str(flags); -- } -- -- opkg_state_changed++; -- opkg_msg(NOTICE, "Setting flags for package %s to %s.\n", -- pkg->name, flags); -- } -- -- write_status_files_if_changed(); -- return 0; --} -- --static int - opkg_files_cmd(int argc, char **argv) - { - pkg_t *pkg; -@@ -1169,7 +1126,6 @@ static opkg_cmd_t cmds[] = { - {"list_upgradable", 0, (opkg_cmd_fun_t)opkg_list_upgradable_cmd, PFM_SOURCE}, - {"list-upgradable", 0, (opkg_cmd_fun_t)opkg_list_upgradable_cmd, PFM_SOURCE}, - {"info", 0, (opkg_cmd_fun_t)opkg_info_cmd, 0}, -- {"flag", 1, (opkg_cmd_fun_t)opkg_flag_cmd, PFM_DESCRIPTION|PFM_SOURCE}, - {"status", 0, (opkg_cmd_fun_t)opkg_status_cmd, PFM_DESCRIPTION|PFM_SOURCE}, - {"install", 1, (opkg_cmd_fun_t)opkg_install_cmd, PFM_DESCRIPTION|PFM_SOURCE}, - {"remove", 1, (opkg_cmd_fun_t)opkg_remove_cmd, PFM_DESCRIPTION|PFM_SOURCE}, |