r4591 - trunk/src/host/opkg-utils
zecke at docs.openmoko.org
zecke at docs.openmoko.org
Thu Aug 7 12:07:29 CEST 2008
Author: zecke
Date: 2008-08-07 12:07:28 +0200 (Thu, 07 Aug 2008)
New Revision: 4591
Modified:
trunk/src/host/opkg-utils/arfile.py
Log:
ipkg-utils: fix ipk (ar) file processing to handle odd-length data blocks.
Closes bug #4350.
This was authored by mwester and comes from OE.
Modified: trunk/src/host/opkg-utils/arfile.py
===================================================================
--- trunk/src/host/opkg-utils/arfile.py 2008-08-06 00:16:19 UTC (rev 4590)
+++ trunk/src/host/opkg-utils/arfile.py 2008-08-07 10:07:28 UTC (rev 4591)
@@ -87,6 +87,8 @@
return FileSection(self.f, self.f.tell(), size)
# Skip data and loop
+ if size % 2:
+ size = size + 1
data = self.f.seek(size, 1)
# print hex(f.tell())
More information about the commitlog
mailing list