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

Sidnei da Silva sidnei at enfoldsystems.com
Fri Jun 6 20:48:48 EDT 2008


Log message for revision 87219:
  
  - 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/trunk/CHANGES.txt
  U   zc.buildout/trunk/src/zc/buildout/easy_install.py

-=-
Modified: zc.buildout/trunk/CHANGES.txt
===================================================================
--- zc.buildout/trunk/CHANGES.txt	2008-06-06 20:42:46 UTC (rev 87218)
+++ zc.buildout/trunk/CHANGES.txt	2008-06-07 00:48:46 UTC (rev 87219)
@@ -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/trunk/src/zc/buildout/easy_install.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/easy_install.py	2008-06-06 20:42:46 UTC (rev 87218)
+++ zc.buildout/trunk/src/zc/buildout/easy_install.py	2008-06-07 00:48:46 UTC (rev 87219)
@@ -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