ipkg-utils: Make it work on fedora 9.
authorHolger Hans Peter Freyther <zecke@openmoko.org>
Sun, 22 Jun 2008 08:12:04 +0000 (16:12 +0800)
committerJohn Lee <john_lee@openmoko.org>
Mon, 5 Jan 2009 09:07:03 +0000 (17:07 +0800)
"control.tar.gz" got listed as "`control.tar.gz" The root cause is
somewhere else in the parser. So this is a workaround that will help
to find the right file. opkg on the device should use the proper ar
executable and that should be able to extract the right files.

packages/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb
packages/ipkg-utils/ipkg-utils/ipkg-py-tarfile.patch
packages/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb

index 02f30c1..10fdbe3 100644 (file)
@@ -85,7 +85,7 @@ Index: ipkg-utils/arfile.py
 +            memberName = descriptor[0][:-1]
 +            self.directory[memberName] = descriptor + [self.f.tell()]
 +#            print "read:", memberName
-+            if memberName == fname:
++            if memberName == fname or (memberName.startswith("`") and memberName[1:] == fname):
 +                # Record directory offset to start from next time
 +                self.directoryOffset = self.f.tell() + size
 +                return FileSection(self.f, self.f.tell(), size)
index 40bef90..7ffecb5 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "GPL"
 CONFLICTS = "ipkg-link"
 RDEPENDS = "python"
 SRCDATE = "20050404"
-PR = "r21"
+PR = "r22"
 
 SRC_URI = "${HANDHELDS_CVS};module=ipkg-utils \
            file://ipkg-utils-fix.patch;patch=1 \