[Python-checkins] distutils2: cache need to take care of paths
tarek.ziade
python-checkins at python.org
Sun Jan 30 10:43:58 CET 2011
tarek.ziade pushed 3354ef84bddb to distutils2:
http://hg.python.org/distutils2/rev/3354ef84bddb
changeset: 946:3354ef84bddb
user: Gael Pasgrimaud <gael at gawel.org>
date: Sat Jan 29 17:25:01 2011 +0100
summary:
cache need to take care of paths
files:
distutils2/_backport/pkgutil.py
diff --git a/distutils2/_backport/pkgutil.py b/distutils2/_backport/pkgutil.py
--- a/distutils2/_backport/pkgutil.py
+++ b/distutils2/_backport/pkgutil.py
@@ -1031,7 +1031,7 @@
for dist in _yield_distributions(True, use_egg_info, paths):
yield dist
else:
- _generate_cache(use_egg_info)
+ _generate_cache(use_egg_info, paths)
for dist in _cache_path.itervalues():
yield dist
@@ -1063,7 +1063,7 @@
if dist.name == name:
return dist
else:
- _generate_cache(use_egg_info)
+ _generate_cache(use_egg_info, paths)
if name in _cache_name:
return _cache_name[name][0]
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list