Commit e0775474 authored by tarek's avatar tarek

fixed the error message used in DistributionNotFound, otherwise it breaks zc.buildout

--HG--
branch : distribute
extra : rebase_source : fbcd6099522983770243735997694c3da40cd59f
parent 14a94e3f
......@@ -537,9 +537,13 @@ class WorkingSet(object):
env = Environment(self.entries)
dist = best[req.key] = env.best_match(req, self, installer)
if dist is None:
msg = ("The '%s' distribution was not found on this "
"system, and is required by this application.")
raise DistributionNotFound(msg % req)
#msg = ("The '%s' distribution was not found on this "
# "system, and is required by this application.")
#raise DistributionNotFound(msg % req)
# unfortunately, zc.buildout uses a str(err)
# to get the name of the distribution here..
raise DistributionNotFound(req)
to_activate.append(dist)
if dist not in req:
# Oops, the "best" so far conflicts with a dependency
......
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