aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2002-04-17 19:57:49 +0800
committertg <tg@FreeBSD.org>2002-04-17 19:57:49 +0800
commit8ca46305237fef02b361c19f87d4afa82065367c (patch)
tree9305c9be9fe4b216d203dac09e8c886f5c96fb45 /lang
parent587c893db94eea541eb15abe5bd9deec4ae5387a (diff)
downloadfreebsd-ports-gnome-8ca46305237fef02b361c19f87d4afa82065367c.tar.gz
freebsd-ports-gnome-8ca46305237fef02b361c19f87d4afa82065367c.tar.zst
freebsd-ports-gnome-8ca46305237fef02b361c19f87d4afa82065367c.zip
Add patch from SF PR #541980. This fixes 4suite.
Submitted by: nectar
Diffstat (limited to 'lang')
-rw-r--r--lang/python-devel/files/patch-Lib:urllib.py14
-rw-r--r--lang/python/files/patch-Lib:urllib.py14
-rw-r--r--lang/python22/files/patch-Lib:urllib.py14
-rw-r--r--lang/python23/files/patch-Lib:urllib.py14
-rw-r--r--lang/python24/files/patch-Lib:urllib.py14
-rw-r--r--lang/python25/files/patch-Lib:urllib.py14
-rw-r--r--lang/python26/files/patch-Lib:urllib.py14
-rw-r--r--lang/python27/files/patch-Lib:urllib.py14
-rw-r--r--lang/python30/files/patch-Lib:urllib.py14
-rw-r--r--lang/python31/files/patch-Lib:urllib.py14
-rw-r--r--lang/python32/files/patch-Lib:urllib.py14
11 files changed, 154 insertions, 0 deletions
diff --git a/lang/python-devel/files/patch-Lib:urllib.py b/lang/python-devel/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python-devel/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python/files/patch-Lib:urllib.py b/lang/python/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python22/files/patch-Lib:urllib.py b/lang/python22/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python22/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python23/files/patch-Lib:urllib.py b/lang/python23/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python23/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python24/files/patch-Lib:urllib.py b/lang/python24/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python24/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python25/files/patch-Lib:urllib.py b/lang/python25/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python25/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python26/files/patch-Lib:urllib.py b/lang/python26/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python26/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python27/files/patch-Lib:urllib.py b/lang/python27/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python27/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python30/files/patch-Lib:urllib.py b/lang/python30/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python30/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python31/files/patch-Lib:urllib.py b/lang/python31/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python31/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]
diff --git a/lang/python32/files/patch-Lib:urllib.py b/lang/python32/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python32/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]