Fix -nonet targets (zope3-buildout)
[zope-bootstrap.git] / Makefile.plone3-buildout
index 520aa48..e39ac20 100644 (file)
@@ -2,6 +2,11 @@
 
 buildout.cfg:
        $(PASTER) create --no-interactive -t plone3_buildout . zope_password=admin
+       @sed -i -e '/\[buildout\]/ba' -eb -e:a                  \
+           -ea\\ -e 'download-cache = $(DLCACHE)/downloads'    \
+           -ea\\ -e 'extends-cache = $(DLCACHE)/extends'       \
+                buildout.cfg || ( rm -f buildout.cfg; false )
+       @mkdir -p $(DLCACHE)/downloads $(DLCACHE)/extends || ( rm -f buildout.cfg; false )
 
 ###########################################################################