Commits

phillip.eby  committed 28899eb

Fix not recognizing HTML 404 pages from package indexes.
(backport from trunk)

  • Participants
  • Parent commits 930b465
  • Branches setuptools-0.6

Comments (0)

Files changed (2)

File EasyInstall.txt

  * Fix ``sys.path_importer_cache`` not being updated when an existing zipfile
    or directory is deleted/overwritten.
 
+ * Fix not recognizing HTML 404 pages from package indexes.
+
 0.6b3
  * Fix local ``--find-links`` eggs not being copied except with
    ``--always-copy``.

File setuptools/package_index.py

         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):
     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)