Commit fac8311b authored by Rafael Monnerat's avatar Rafael Monnerat

Improve definition of tmp-storage to use download-cache or BUILDOUT/downloads...

Improve definition of tmp-storage to use download-cache or BUILDOUT/downloads is download cache is not defined.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33769 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7482f492
......@@ -14,6 +14,7 @@
##############################################################################
import z3c.recipe.openoffice.recipe as original
import os
import platform
class Recipe(original.Recipe):
......@@ -31,4 +32,5 @@ class Recipe(original.Recipe):
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'))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment