[Erp5-report] r33769 rafael - /erp5/trunk/buildout/local-eggs/erp5.recipe.openoffice/src/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 16 20:35:03 CET 2010


Author: rafael
Date: Tue Mar 16 20:35:01 2010
New Revision: 33769

URL: http://svn.erp5.org?rev=33769&view=rev
Log:
Improve definition of tmp-storage to use download-cache or BUILDOUT/downloads is download cache is not defined.

Modified:
    erp5/trunk/buildout/local-eggs/erp5.recipe.openoffice/src/erp5/recipe/openoffice/__init__.py

Modified: erp5/trunk/buildout/local-eggs/erp5.recipe.openoffice/src/erp5/recipe/openoffice/__init__.py
URL: http://svn.erp5.org/erp5/trunk/buildout/local-eggs/erp5.recipe.openoffice/src/erp5/recipe/openoffice/__init__.py?rev=33769&r1=33768&r2=33769&view=diff
==============================================================================
--- erp5/trunk/buildout/local-eggs/erp5.recipe.openoffice/src/erp5/recipe/openoffice/__init__.py [utf8] (original)
+++ erp5/trunk/buildout/local-eggs/erp5.recipe.openoffice/src/erp5/recipe/openoffice/__init__.py [utf8] Tue Mar 16 20:35:01 2010
@@ -14,6 +14,7 @@
 ##############################################################################
 
 import z3c.recipe.openoffice.recipe as original
+import os
 import platform
 
 class Recipe(original.Recipe):
@@ -31,4 +32,5 @@
 
     options['download-url'] = options['download-%s' % target]
     original.Recipe.__init__(self, buildout, name, options)
-    self.options['tmp-storage'] = buildout['buildout']["download-cache"]
+    self.options['tmp-storage'] = buildout['buildout'].get('download-cache',
+                os.path.join(buildout['buildout']['directory'], 'download'))




More information about the Erp5-report mailing list