[Checkins] SVN: zc.buildout/branches/help-api/ - Quote the 'spec' argument, as in the case of installing an egg from

Godefroid Chapelle gotcha at bubblenet.be
Sun Mar 29 17:19:02 EDT 2009


Log message for revision 98485:
  
  - Quote the 'spec' argument, as in the case of installing an egg from
    the buildout-cache, if the filename contains spaces it would fail

Changed:
  U   zc.buildout/branches/help-api/CHANGES.txt
  U   zc.buildout/branches/help-api/src/zc/buildout/easy_install.py

-=-
Modified: zc.buildout/branches/help-api/CHANGES.txt
===================================================================
--- zc.buildout/branches/help-api/CHANGES.txt	2009-03-29 21:18:55 UTC (rev 98484)
+++ zc.buildout/branches/help-api/CHANGES.txt	2009-03-29 21:19:02 UTC (rev 98485)
@@ -7,6 +7,9 @@
 1.0.4 (unreleased)
 ==================
 
+- Quote the 'spec' argument, as in the case of installing an egg from
+  the buildout-cache, if the filename contains spaces it would fail (sidnei)
+
 - Extended configuration syntax to allow -= and += operators (malthe).
   
 1.0.3 (2008-06-01)

Modified: zc.buildout/branches/help-api/src/zc/buildout/easy_install.py
===================================================================
--- zc.buildout/branches/help-api/src/zc/buildout/easy_install.py	2009-03-29 21:18:55 UTC (rev 98484)
+++ zc.buildout/branches/help-api/src/zc/buildout/easy_install.py	2009-03-29 21:19:02 UTC (rev 98485)
@@ -272,7 +272,7 @@
             elif level < 0:
                 args += ('-v', )
 
-            args += (spec, )
+            args += (_safe_arg(spec), )
 
             if level <= logging.DEBUG:
                 logger.debug('Running easy_install:\n%s "%s"\npath=%s\n',



More information about the Checkins mailing list