upip: Treat PyPI redirects as "package not found".

PyPI has got too smart and redirects typos, etc. to a similarly-called
packages.
pull/70/merge
Paul Sokolovsky 2017-05-04 10:17:27 +03:00
rodzic 823b743daf
commit c9337def58
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -129,7 +129,7 @@ def url_open(url):
if status != b"200":
s.close()
exc = ValueError(status)
if status == b"404":
if status == b"404" or status == b"301":
fatal("Package not found", exc)
fatal("Unexpected error querying for package", exc)
while 1: