Commit 4041d1f4 authored by Jason R. Coombs's avatar Jason R. Coombs

Updated error message reported when `--allow-hosts` blocks a link to provide a...

Updated error message reported when `--allow-hosts` blocks a link to provide a less startling user experience. Fixes #71.
parent 2ec8add3
......@@ -2,6 +2,13 @@
CHANGES
=======
---
1.1
---
* Issue #71 (Distribute Issue #333): EasyInstall now puts less emphasis on the
condition when a host is blocked via ``--allow-hosts``.
---
1.0
---
......
......@@ -343,7 +343,8 @@ class PackageIndex(Environment):
s = URL_SCHEME(url)
if (s and s.group(1).lower()=='file') or self.allows(urlparse(url)[1]):
return True
msg = "\nLink to % s ***BLOCKED*** by --allow-hosts\n"
msg = ("\nNote: Bypassing %s (disallowed host; see "
"http://bit.ly/1dg9ijs for details).\n")
if fatal:
raise DistutilsError(msg % url)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment