Commit 8d6f4c24 authored by Jérome Perrin's avatar Jérome Perrin

fix error reporting for misformed environment variables

parent b11ecc12
......@@ -127,7 +127,7 @@ class Recipe(object):
key, value = variable.split('=', 1)
self.environ[key.strip()] = value
except ValueError:
raise zc.buildout.UserError('Invalid environment variable definition: %s', variable)
raise zc.buildout.UserError('Invalid environment variable definition: %s' % variable)
# Add prefix to PATH, CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS
if self.buildout_prefix != '':
self.environ['PATH'] = '%s/bin:%s' % (self.buildout_prefix, self.environ.get('PATH', '/usr/bin'))
......
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