Handle urllib2 errors of dummy .part files created as a result of unreachable
translations.xml's. Fixes #12136. Ilgili hatadaki 8. yorumda Isbaran'in yazdiklari sorunu acikliyor. BUG:FIXED:12136
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2010-01-26 Serdar Dalgıç <serdar@pardus.org.tr>
|
||||||
|
* Handle urllib2 errors of dummy .part files created as a result of unreachable
|
||||||
|
translations.xml's. Fixes #12136.
|
||||||
|
|
||||||
2010-01-23 Ozan Çağlayan <ozan@pardus.org.tr>
|
2010-01-23 Ozan Çağlayan <ozan@pardus.org.tr>
|
||||||
* Add support for optional reverse="[tT]rue" in <Patch> for reverse applying
|
* Add support for optional reverse="[tT]rue" in <Patch> for reverse applying
|
||||||
a patch.
|
a patch.
|
||||||
|
|||||||
+7
-1
@@ -206,7 +206,13 @@ class Fetcher:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
import urllib2
|
import urllib2
|
||||||
file_obj = urllib2.urlopen(urllib2.Request(self.url.get_uri()))
|
try:
|
||||||
|
file_obj = urllib2.urlopen(urllib2.Request(self.url.get_uri()))
|
||||||
|
except urllib2.HTTPError:
|
||||||
|
ctx.ui.debug(_("Remote file can not be reached. Previously downloaded part of the file will be removed."))
|
||||||
|
os.remove(self.partial_file)
|
||||||
|
return None
|
||||||
|
|
||||||
headers = file_obj.info()
|
headers = file_obj.info()
|
||||||
file_obj.close()
|
file_obj.close()
|
||||||
if headers.has_key('Content-Length'):
|
if headers.has_key('Content-Length'):
|
||||||
|
|||||||
Reference in New Issue
Block a user