diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:17:51 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:17:51 (EST) |
commit | ddd373d69aac313269e6465a83c633d9a1815643 (patch) | |
tree | 8616815dc9ac459fad09632664ca35351463175f | |
parent | 7cbcff8aceb60537d933bb8b016a9f6c4f163b66 (diff) |
opkg: set callbacks before opkg_conf_init
git-svn-id: http://opkg.googlecode.com/svn/trunk@113 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | libopkg/libopkg.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libopkg/libopkg.c b/libopkg/libopkg.c index ba1b2e0..dba1983 100644 --- a/libopkg/libopkg.c +++ b/libopkg/libopkg.c @@ -477,6 +477,10 @@ opkg_op (int argc, char *argv[]) !strcmp(cmd_name,"status") ) args.noreadfeedsfile = 1; + opkg_cb_message = default_opkg_message_callback; + opkg_cb_response = default_opkg_response_callback; + opkg_cb_status = default_opkg_status_callback; + err = opkg_conf_init (&opkg_conf, &args); if (err) @@ -486,9 +490,6 @@ opkg_op (int argc, char *argv[]) args_deinit (&args); - opkg_cb_message = default_opkg_message_callback; - opkg_cb_response = default_opkg_response_callback; - opkg_cb_status = default_opkg_status_callback; if ( strcmp(cmd_name, "files")==0) opkg_cb_list = default_opkg_files_callback; else |