libopkg issues

Tick Chen tick at openmoko.com
Sat Jun 21 16:56:28 CEST 2008


Hi Thomas, 
  Since update to opkg svn 4466, the opkg_new in libopkg is no longer to
initial. It's is because in opkg_new it will check the return value of
args_init and it always returns 1. 
Then opkg_new will think it's an err, then free the opkg and returns
NULL. 

That cause packagekitd no longer works. 

I suggest to define that args_init returns the err value, and let
args_init returns 0 if there are no issues. 
-------------- next part --------------
Index: opkg/libopkg/args.c
===================================================================
--- opkg.orig/libopkg/args.c	2008-06-21 22:36:04.000000000 +0800
+++ opkg/libopkg/args.c	2008-06-21 22:36:37.000000000 +0800
@@ -78,7 +78,7 @@
      args->nocheckfordirorfile = 0;
      args->noreadfeedsfile = 0;
 
-     return 1;
+     return 0;
 }
 
 void args_deinit(args_t *args)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.openmoko.org/pipermail/opkg-devel/attachments/20080621/c72dd4f1/attachment.pgp 


More information about the opkg-devel mailing list