[oe-commits] org.oe.packaged-staging ipkg-utils: sync with .dev

koen commit openembedded-commits at lists.openembedded.org
Fri Sep 8 11:07:03 UTC 2006


ipkg-utils: sync with .dev

Author: koen at openembedded.org
Branch: org.openembedded.packaged-staging
Revision: 7439fd03db8d06fa52cba8bb7411c6e2aa6420ff
ViewMTN: http://monotone.openembedded.org/revision.psp?id=7439fd03db8d06fa52cba8bb7411c6e2aa6420ff
Files:
1
packages/ipkg-utils/ipkg-utils
packages/ipkg-utils/ipkg-utils-native
packages/ipkg-utils/ipkg-utils/index_speedup.patch
packages/ipkg-utils/ipkg-utils-native/ipkg-utils-fix.patch
packages/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb
packages/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb
Diffs:

#
# mt diff -r79e1ebe08e919103e7e8d4ced4506489c7635058 -r7439fd03db8d06fa52cba8bb7411c6e2aa6420ff
#
# 
# 
# add_dir "packages/ipkg-utils/ipkg-utils"
# 
# add_dir "packages/ipkg-utils/ipkg-utils-native"
# 
# add_file "packages/ipkg-utils/ipkg-utils/index_speedup.patch"
#  content [d8d0c62aed749ff5f590508e53864f338387216a]
# 
# add_file "packages/ipkg-utils/ipkg-utils-native/ipkg-utils-fix.patch"
#  content [1a816d7ce92dc2d298950f53170525c12a32d808]
# 
# patch "packages/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb"
#  from [218f4c3a9c78cc5c2bbb60490b2e6d6fa7c7c12c]
#    to [d164cf193dee3b1357f485d440fecbaaf250ccf5]
# 
# patch "packages/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb"
#  from [f046611523a01f009cfb1e570621a6b8894815b9]
#    to [f6d41b6ec89a49d9b83b2c4fd7b4825e43d158ab]
# 
============================================================
--- packages/ipkg-utils/ipkg-utils/index_speedup.patch	d8d0c62aed749ff5f590508e53864f338387216a
+++ packages/ipkg-utils/ipkg-utils/index_speedup.patch	d8d0c62aed749ff5f590508e53864f338387216a
@@ -0,0 +1,53 @@
+Index: ipkg-utils/ipkg-make-index
+===================================================================
+--- ipkg-utils.orig/ipkg-make-index	2005-03-20 18:10:54.000000000 +0000
++++ ipkg-utils/ipkg-make-index	2006-07-24 09:18:16.000000000 +0100
+@@ -37,6 +37,21 @@
+      if os.path.exists(pkg_dir + "/" + filename + ".asc"):
+           os.rename(pkg_dir + "/" + filename + ".asc", locale_dir + "/" + filename + ".asc")
+ 
++def md5sum(file):
++     import md5
++     sum = md5.new()
++     f = open(file, "r")
++     while 1:
++          data = f.read(1024)
++          if not data: break
++          sum.update(data)
++     f.close()
++     if sys.version[:1] > '2':
++          # when using Python 2.0 or newer
++          return sum.hexdigest()
++     else:
++          return string.join(map((lambda x:"%02x" % ord(x)),sum.digest()),'')
++
+ old_filename = None
+ packages_filename = None
+ filelist_filename = "Packages.filelist"
+@@ -87,7 +102,7 @@
+ files.sort()
+ for filename in files:
+      basename = os.path.basename(filename)
+-     if old_pkg_hash.has_key(basename):
++     if old_pkg_hash.has_key(basename) and old_pkg_hash[basename].md5 == md5sum(filename) and old_pkg_hash[basename].size == os.stat(filename)[6]:
+           if (verbose):
+                sys.stderr.write("Found %s in Packages\n" % (filename,))
+           pkg = old_pkg_hash[basename]
+Index: ipkg-utils/ipkg.py
+===================================================================
+--- ipkg-utils.orig/ipkg.py	2005-01-20 23:09:10.000000000 +0000
++++ ipkg-utils/ipkg.py	2006-07-24 09:16:44.000000000 +0100
+@@ -210,8 +210,13 @@
+                     value = value + '\n' + line
+                 if name == 'size':
+                     self.size = int(value)
++	        elif name == 'md5sum':
++                    self.md5 = value
+                 elif self.__dict__.has_key(name):
+                     self.__dict__[name] = value
++		else:
++		    print "Lost field %s, %s" % (name,value)
++
+                 if line[0] == '\n':
+                     return # consumes one blank line at end of package descriptoin
+             else:
============================================================
--- packages/ipkg-utils/ipkg-utils-native/ipkg-utils-fix.patch	1a816d7ce92dc2d298950f53170525c12a32d808
+++ packages/ipkg-utils/ipkg-utils-native/ipkg-utils-fix.patch	1a816d7ce92dc2d298950f53170525c12a32d808
@@ -0,0 +1,17 @@
+--- ../../../work/i686-linux/ipkg-utils-native-1.6+cvs20050404-r6/ipkg-utils/ipkg.py	2005-01-08 19:08:52.000000000 +0100
++++ ipkg-utils/ipkg.py	2006-06-29 12:52:58.466446000 +0200
+@@ -150,11 +150,11 @@
+             stat = os.stat(fn)
+             self.size = stat[ST_SIZE]
+             self.filename = os.path.basename(fn)
+-	    ## sys.stderr.write("  extracting control.tar.gz from %s\n"% (fn,)) 
++	    sys.stderr.write("  extracting control.tar.gz from %s\n"% (fn,)) 
+             if self.isdeb:
+-                control = os.popen("ar p "+fn+" control.tar.gz | tar xfzO - '*control'","r")
++                control = os.popen("ar p "+fn+" control.tar.gz | tar xfzO - './control'","r")
+             else:
+-                control = os.popen("tar xfzO "+fn+" '*control.tar.gz' | tar xfzO - '*control'","r")
++                control = os.popen("tar xfzO "+fn+" 'control.tar.gz' | tar xfzO - './control'","r")
+             line = control.readline()
+             while 1:
+                 if not line: break
============================================================
--- packages/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb	218f4c3a9c78cc5c2bbb60490b2e6d6fa7c7c12c
+++ packages/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb	d164cf193dee3b1357f485d440fecbaaf250ccf5
@@ -1,12 +1,14 @@
-include ipkg-utils_${PV}.bb
+require ipkg-utils_${PV}.bb
+SRC_URI += "file://ipkg-utils-fix.patch;patch=1"
 
 RDEPENDS = ""
-PR = "r6"
+PR = "r8"
 
 inherit native
 
 # Avoid circular dependencies from package_ipk.bbclass
 PACKAGES = ""
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/ipkg-utils"
 
 do_stage() {
         for i in ${INSTALL}; do
============================================================
--- packages/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb	f046611523a01f009cfb1e570621a6b8894815b9
+++ packages/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb	f6d41b6ec89a49d9b83b2c4fd7b4825e43d158ab
@@ -5,9 +5,10 @@ SRCDATE = "20050404"
 CONFLICTS = "ipkg-link"
 RDEPENDS = "python"
 SRCDATE = "20050404"
-PR = "r11"
+PR = "r12"
 
-SRC_URI = "${HANDHELDS_CVS};module=ipkg-utils"
+SRC_URI = "${HANDHELDS_CVS};module=ipkg-utils \
+           file://index_speedup.patch;patch=1"
 
 S = "${WORKDIR}/ipkg-utils"
 






More information about the Openembedded-commits mailing list