summaryrefslogtreecommitdiffstats
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)
downloadpoky-5eb169bb6a83cb8827880290dbc727ef57fed4b7.tar.gz
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 0000000000..b63e7c33ac
--- /dev/null
+++ b/meta/packages/python/python-urlgrabber/urlgrabber-reset.patch
@@ -0,0 +1,15 @@
1--- a/urlgrabber/grabber.py 2010-02-19 14:50:45.000000000 -0500
2+++ b/urlgrabber/grabber.py 2010-02-19 14:51:28.000000000 -0500
3@@ -1626,6 +1626,12 @@
4
5 _curl_cache = pycurl.Curl() # make one and reuse it over and over and over
6
7+def reset_curl_obj():
8+ """To make sure curl has reread the network/dns info we force a reload"""
9+ global _curl_cache
10+ _curl_cache.close()
11+ _curl_cache = pycurl.Curl()
12+
13
14 #####################################################################
15 # DEPRECATED FUNCTIONS