summaryrefslogtreecommitdiff
path: root/meta/packages/python/python-urlgrabber/urlgrabber-reset.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-reset.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-reset.patch')
-rw-r--r--meta/packages/python/python-urlgrabber/urlgrabber-reset.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/packages/python/python-urlgrabber/urlgrabber-reset.patch b/meta/packages/python/python-urlgrabber/urlgrabber-reset.patch
new file mode 100644
index 000000000..b63e7c33a
--- /dev/null
+++ b/meta/packages/python/python-urlgrabber/urlgrabber-reset.patch
@@ -0,0 +1,15 @@
+--- a/urlgrabber/grabber.py 2010-02-19 14:50:45.000000000 -0500
++++ b/urlgrabber/grabber.py 2010-02-19 14:51:28.000000000 -0500
+@@ -1626,6 +1626,12 @@
+
+ _curl_cache = pycurl.Curl() # make one and reuse it over and over and over
+
++def reset_curl_obj():
++ """To make sure curl has reread the network/dns info we force a reload"""
++ global _curl_cache
++ _curl_cache.close()
++ _curl_cache = pycurl.Curl()
++
+
+ #####################################################################
+ # DEPRECATED FUNCTIONS