From dc66bc4eb7cd84ba849eea2c652f795bc243265f Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Fri, 3 Mar 2006 23:51:00 +0000 Subject: Don't recurse into subdirectories when scanning --find-links --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042822 --- setuptools/package_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/package_index.py b/setuptools/package_index.py index c02f3b4e..ad996e57 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -182,7 +182,7 @@ class PackageIndex(Environment): 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) -- cgit v1.2.3