On Tue, Jan 8, 2013 at 7:45 AM, Marius Gedminas <mar...@pov.lt> wrote: ... > If backwards-compatibility weren't an consideration, I'd be tempted to > have buildout 2.0 hardcode the versions section name to [versions] and > have the append-new-versions code append a "\n\n[versions]\n" line if > necessary. > > That way you could say > > [buildout] > append-picked-versions = buildout.cfg > > and have it Just Work with no extra bootstrapping.
It would work until someone added a new section at the end. or If append-new-versions added a versions section if the last section wasn't a versions section, at which point you could end up with multiple versions sections spread over the file. Having buildout modify a hand-edited file just seems like a Bad Idea to me. Jim -- Jim Fulton http://www.linkedin.com/in/jimfulton Jerky is better than bacon! http://zo.pe/Kqm _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig