[Erp5-report] r43224 luke - /erp5/trunk/buildout/hooks/postfix-hooks.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 9 10:53:34 CET 2011
Author: luke
Date: Wed Feb 9 10:53:34 2011
New Revision: 43224
URL: http://svn.erp5.org?rev=43224&view=rev
Log:
- some python versions do not have tarfile bug, so check before playing with linking
Modified:
erp5/trunk/buildout/hooks/postfix-hooks.py
Modified: erp5/trunk/buildout/hooks/postfix-hooks.py
URL: http://svn.erp5.org/erp5/trunk/buildout/hooks/postfix-hooks.py?rev=43224&r1=43223&r2=43224&view=diff
==============================================================================
--- erp5/trunk/buildout/hooks/postfix-hooks.py [utf8] (original)
+++ erp5/trunk/buildout/hooks/postfix-hooks.py [utf8] Wed Feb 9 10:53:34 2011
@@ -1,5 +1,7 @@
import os
def pre_make_hook(options, buildout):
# workaround python's tarfile bug with links
- os.symlink('../LICENSE', os.path.join('conf', 'LICENSE'))
- os.symlink('../TLS_LICENSE', os.path.join('conf', 'TLS_LICENSE'))
+ if not os.path.lexists(os.path.join('conf', 'LICENSE')):
+ os.symlink('../LICENSE', os.path.join('conf', 'LICENSE'))
+ if not os.path.lexists(os.path.join('conf', 'LICENSE')):
+ os.symlink('../TLS_LICENSE', os.path.join('conf', 'TLS_LICENSE'))
More information about the Erp5-report
mailing list