Commit 2ac27c6a authored by tarek's avatar tarek

comparing requirement locations instead of requirement objects

git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@104933 62d5b8a3-27da-0310-9561-8e5933582275
parent f36c1175
...@@ -807,7 +807,8 @@ class Buildout(UserDict.DictMixin): ...@@ -807,7 +807,8 @@ class Buildout(UserDict.DictMixin):
upgraded = [] upgraded = []
for project in 'zc.buildout', 'setuptools': for project in 'zc.buildout', 'setuptools':
req = pkg_resources.Requirement.parse(project) req = pkg_resources.Requirement.parse(project)
if ws.find(req) != pkg_resources.working_set.find(req): project_location = pkg_resources.working_set.find(req).location
if ws.find(req).location != project_location:
upgraded.append(ws.find(req)) upgraded.append(ws.find(req))
if not upgraded: if not upgraded:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment