summaryrefslogtreecommitdiff
path: root/meta/packages/python/python-urlgrabber/urlgrabber-3.0.0-cleanup.patch
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-03-25 16:13:29 +0000
committerJoshua Lock <josh@linux.intel.com>2010-03-26 10:29:18 +0000
commit5eb169bb6a83cb8827880290dbc727ef57fed4b7 (patch)
tree0293313fb1f06cc1034ff53946d817e99d72d5fa /meta/packages/python/python-urlgrabber/urlgrabber-3.0.0-cleanup.patch
parent811497111b6e2653336914acc204b86a27dda1f1 (diff)
downloadopenembedded-core-5eb169bb6a83cb8827880290dbc727ef57fed4b7.tar.gz
openembedded-core-5eb169bb6a83cb8827880290dbc727ef57fed4b7.tar.bz2
openembedded-core-5eb169bb6a83cb8827880290dbc727ef57fed4b7.tar.xz
openembedded-core-5eb169bb6a83cb8827880290dbc727ef57fed4b7.zip
python-urlgrabber: Update to 3.9.1 with extra patches from Fedora
Add a couple of extra patches from Fedora to make the latest createrepo package work. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/python/python-urlgrabber/urlgrabber-3.0.0-cleanup.patch')
-rw-r--r--meta/packages/python/python-urlgrabber/urlgrabber-3.0.0-cleanup.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/packages/python/python-urlgrabber/urlgrabber-3.0.0-cleanup.patch b/meta/packages/python/python-urlgrabber/urlgrabber-3.0.0-cleanup.patch
new file mode 100644
index 000000000..7a1ee059d
--- /dev/null
+++ b/meta/packages/python/python-urlgrabber/urlgrabber-3.0.0-cleanup.patch
@@ -0,0 +1,28 @@
+diff -up urlgrabber-3.0.0/urlgrabber/grabber.py.cleanup urlgrabber-3.0.0/urlgrabber/grabber.py
+--- urlgrabber-3.0.0/urlgrabber/grabber.py.cleanup 2007-11-29 10:25:13.000000000 +0000
++++ urlgrabber-3.0.0/urlgrabber/grabber.py 2007-11-29 10:26:15.000000000 +0000
+@@ -1204,16 +1204,18 @@ class URLGrabberFileObject:
+ bs = 1024*8
+ size = 0
+
+- if amount is not None: bs = min(bs, amount - size)
+- block = self.read(bs)
+- size = size + len(block)
+- while block:
+- new_fo.write(block)
++ try:
+ if amount is not None: bs = min(bs, amount - size)
+ block = self.read(bs)
+ size = size + len(block)
++ while block:
++ new_fo.write(block)
++ if amount is not None: bs = min(bs, amount - size)
++ block = self.read(bs)
++ size = size + len(block)
++ finally:
++ new_fo.close()
+
+- new_fo.close()
+ try:
+ modified_tuple = self.hdr.getdate_tz('last-modified')
+ modified_stamp = rfc822.mktime_tz(modified_tuple)