aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-07-10 21:55:25 +0000
committerPJ Eby <distutils-sig@python.org>2006-07-10 21:55:25 +0000
commitac7808e631535975e29298f7b41c38a6de3b26e3 (patch)
treee2098901b613d8869a613bc390d051a5fc7888d5 /setuptools/package_index.py
parent9ba52cf30de1f9e8c019481e615fd661e4533bd2 (diff)
downloadexternal_python_setuptools-ac7808e631535975e29298f7b41c38a6de3b26e3.tar.gz
external_python_setuptools-ac7808e631535975e29298f7b41c38a6de3b26e3.tar.bz2
external_python_setuptools-ac7808e631535975e29298f7b41c38a6de3b26e3.zip
Fix not recognizing HTML 404 pages from package indexes.
(backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050552
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index d13bfc0f..4c81580b 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -169,7 +169,7 @@ class PackageIndex(Environment):
base = f.url # handle redirects
page = f.read()
f.close()
- if url.startswith(self.index_url):
+ if url.startswith(self.index_url) and getattr(f,'code',None)!=404:
page = self.process_index(url, page)
for match in HREF.finditer(page):
@@ -253,7 +253,7 @@ class PackageIndex(Environment):
def scan_all(self, msg=None, *args):
if self.index_url not in self.fetched_urls:
if msg: self.warn(msg,*args)
- self.warn(
+ self.info(
"Scanning index of all packages (this may take a while)"
)
self.scan_url(self.index_url)