From 30f1c5ad93e21ec007d371313e2a27e4d0efb661 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Sun, 17 Jul 2005 04:42:42 +0000 Subject: Renamings for consistent terminology; distributions and requirements now both have 'project_name' attributes, instead of one having 'name' and the other 'distname'. Requirements no longer have 'options', they have 'extras'. This is the beginning of the terminology/architecture refactoring described at: http://mail.python.org/pipermail/distutils-sig/2005-June/004652.html --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041132 --- setuptools/package_index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setuptools/package_index.py') diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 5412fd1f..f553c2da 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -245,12 +245,12 @@ class PackageIndex(AvailableDistributions): def find_packages(self, requirement): - self.scan_url(self.index_url + requirement.distname+'/') + self.scan_url(self.index_url + requirement.project_name+'/') if not self.package_pages.get(requirement.key): # We couldn't find the target package, so search the index page too self.warn( "Couldn't find index page for %r (maybe misspelled?)", - requirement.distname + requirement.project_name ) if self.index_url not in self.fetched_urls: self.warn( -- cgit v1.2.1