[Checkins] SVN: zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py
extra_options can now contain newlines, making for more readable
Martijn Faassen
faassen at infrae.com
Thu Sep 28 06:49:18 EDT 2006
Log message for revision 70418:
extra_options can now contain newlines, making for more readable
buildout.cfg. Newlines are automatically translated to spaces.
Changed:
U zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py
-=-
Modified: zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py
===================================================================
--- zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py 2006-09-28 08:55:43 UTC (rev 70417)
+++ zc.recipe.cmmi/trunk/zc/recipe/cmmi/__init__.py 2006-09-28 10:49:17 UTC (rev 70418)
@@ -15,6 +15,9 @@
def install(self):
dest = self.options['prefix']
extra_options = self.options.get('extra_options', '')
+ # get rid of any newlines that may be in the options so they
+ # do not get passed through to the commandline
+ extra_options = ' '.join(extra_options.split())
if os.path.exists(dest):
return dest # already there
More information about the Checkins
mailing list