Commit f3347818 authored by Jim Fulton's avatar Jim Fulton

Merge pull request #83 from reinout/remove-dumppickedversions-note

Removed buildout.dumppickedversions from the warning. Partial fix for #70
parents 28ff4a9a bfa7af9a
...@@ -956,11 +956,12 @@ class Buildout(DictMixin): ...@@ -956,11 +956,12 @@ class Buildout(DictMixin):
for superceded_extension in ['buildout-versions', for superceded_extension in ['buildout-versions',
'buildout.dumppickedversions']: 'buildout.dumppickedversions']:
if superceded_extension in specs: if superceded_extension in specs:
msg = ("The extension %s is now included in buildout itself.\n" msg = ("Buildout now includes 'buildout-versions' (and part "
"of the older 'buildout.dumppickedversions').\n"
"Remove the extension from your configuration and " "Remove the extension from your configuration and "
"look at the `show-picked-versions`\n" "look at the 'show-picked-versions' option in "
"option in buildout's documentation.") "buildout's documentation.")
raise zc.buildout.UserError(msg % superceded_extension) raise zc.buildout.UserError(msg)
if specs: if specs:
path = [self['buildout']['develop-eggs-directory']] path = [self['buildout']['develop-eggs-directory']]
if self.offline: if self.offline:
......
...@@ -408,7 +408,7 @@ The versions file contains the extra pin: ...@@ -408,7 +408,7 @@ The versions file contains the extra pin:
>>> 'spam = 2' in open('my_versions.cfg').read() >>> 'spam = 2' in open('my_versions.cfg').read()
True True
Because buildout now includes buildout-versions' (and the older Because buildout now includes buildout-versions' (and part of the older
buildout.dumppickedversions') functionality, it warns if these extensions are buildout.dumppickedversions') functionality, it warns if these extensions are
configured. configured.
...@@ -421,10 +421,11 @@ configured. ...@@ -421,10 +421,11 @@ configured.
... [foo] ... [foo]
... recipe = spam ... recipe = spam
... """) ... """)
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS >>> print_(system(buildout), end='') # doctest: +NORMALIZE_WHITESPACE
While: While:
Installing. Installing.
Loading extensions. Loading extensions.
Error: The extension buildout-versions is now included in buildout itself. Error: Buildout now includes 'buildout-versions'
Remove the extension from your configuration and look at the `show-picked-versions` (and part of the older 'buildout.dumppickedversions').
option in buildout's documentation. Remove the extension from your configuration and look at the
'show-picked-versions' option in buildout's documentation.
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