[Python-checkins] r42822 - sandbox/trunk/setuptools/setuptools/package_index.py

phillip.eby python-checkins at python.org
Sat Mar 4 00:51:07 CET 2006


Author: phillip.eby
Date: Sat Mar  4 00:51:00 2006
New Revision: 42822

Modified:
   sandbox/trunk/setuptools/setuptools/package_index.py
Log:
Don't recurse into subdirectories when scanning --find-links


Modified: sandbox/trunk/setuptools/setuptools/package_index.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/package_index.py	(original)
+++ sandbox/trunk/setuptools/setuptools/package_index.py	Sat Mar  4 00:51:00 2006
@@ -182,7 +182,7 @@
             self.warn("Not found: %s", url)
             return
 
-        if os.path.isdir(fn):
+        if os.path.isdir(fn) and not nested:
             path = os.path.realpath(fn)
             for item in os.listdir(path):
                 self.process_filename(os.path.join(path,item), True)


More information about the Python-checkins mailing list