X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=urlgrabber-pycurl-resolv.conf-hack.patch;fp=urlgrabber-pycurl-resolv.conf-hack.patch;h=7a25dabbd6ca7e8a9b85275928c5f21b9face4b9;hb=f055b746c616662ca9ed172e87dd0c119580040b;hp=0000000000000000000000000000000000000000;hpb=481eec4cf1faf4c61be93ee54e786d5cd02954ff;p=packages%2Fpython-urlgrabber.git diff --git a/urlgrabber-pycurl-resolv.conf-hack.patch b/urlgrabber-pycurl-resolv.conf-hack.patch new file mode 100644 index 0000000..7a25dab --- /dev/null +++ b/urlgrabber-pycurl-resolv.conf-hack.patch @@ -0,0 +1,19 @@ +--- urlgrabber-3.9.1/urlgrabber/grabber.py~ 2010-02-04 00:34:13.394410346 +0200 ++++ urlgrabber-3.9.1/urlgrabber/grabber.py 2010-02-04 00:34:15.851263468 +0200 +@@ -1624,8 +1624,14 @@ + urllib.addinfourl, via. urllib.URLopener.* """ + return self.url + +-_curl_cache = pycurl.Curl() # make one and reuse it over and over and over +- ++try: ++ _curl_cache = pycurl.Curl() # make one and reuse it over and over and over ++except pycurl.error, e: ++ # in pld builders /etc/resolv.conf is not readable and curl throws an error ++ if str(e) == 'initializing curl failed': ++ print e ++ else: ++ raise + + ##################################################################### + # DEPRECATED FUNCTIONS