r4441 - trunk/src/target/opkg/libopkg

thomas at docs.openmoko.org thomas at docs.openmoko.org
Fri May 16 16:41:48 CEST 2008


Author: thomas
Date: 2008-05-16 16:41:47 +0200 (Fri, 16 May 2008)
New Revision: 4441

Modified:
   trunk/src/target/opkg/libopkg/libopkg.c
Log:
opkg: set callbacks before opkg_conf_init


Modified: trunk/src/target/opkg/libopkg/libopkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/libopkg.c	2008-05-16 12:21:50 UTC (rev 4440)
+++ trunk/src/target/opkg/libopkg/libopkg.c	2008-05-16 14:41:47 UTC (rev 4441)
@@ -477,7 +477,11 @@
              !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 @@
 
 	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





More information about the commitlog mailing list