diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-30 22:15:13 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-30 22:16:10 +0100 |
| commit | c0c657bd92911788b96d9670620eabf024453752 (patch) | |
| tree | 774a5e2d966d6ee87da17cd063580d5970564d00 /meta-extras/packages/python/python-urlgrabber/urlgrabber-reset.patch | |
| parent | e71a306f9cac8e30e689d607e2092e11a756ef5d (diff) | |
| download | poky-c0c657bd92911788b96d9670620eabf024453752.tar.gz | |
Split meta-extras and meta-moblin out of the main repository
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta-extras/packages/python/python-urlgrabber/urlgrabber-reset.patch')
| -rw-r--r-- | meta-extras/packages/python/python-urlgrabber/urlgrabber-reset.patch | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/meta-extras/packages/python/python-urlgrabber/urlgrabber-reset.patch b/meta-extras/packages/python/python-urlgrabber/urlgrabber-reset.patch deleted file mode 100644 index b63e7c33ac..0000000000 --- a/meta-extras/packages/python/python-urlgrabber/urlgrabber-reset.patch +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 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 | ||
