opkg and locking

Thomas Wood thomas at openedhand.com
Tue Jun 3 18:28:12 CEST 2008

On Thu, 2008-04-17 at 16:29 +0100, Thomas Wood wrote:
> On Wed, 2008-04-16 at 17:42 +0100, Richard Purdie wrote:
> > Hi,
> > 
> > A while back I ran into problems where you could get corruption if you
> > ran two or more copies of ipkg/opkg at once against the same filesystem
> > since it doesn't appear to take any kind of mutex/lock.
> > 
> > Is this something which has been fixed or you plan to fix?
> Good idea. I've added it to the todo page on the wiki.

I've attached a patch which gives my first attempt at fixing this and
also cleans up some of the error reporting from opkg_conf_init.

Testing is welcomed and any suggestions on a better error message would
be good too!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-opkg-lock.diff
Type: text/x-patch
Size: 6687 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/opkg-devel/attachments/20080603/f21f68aa/attachment.bin 

More information about the opkg-devel mailing list