Commit ce4ae7ea authored by Łukasz Nowak's avatar Łukasz Nowak

- fix hook -- if file exists, do not try to symlink


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40044 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43c9ce4c
......@@ -2,6 +2,6 @@ import os
def pre_configure_hook(oprtions, buildout):
# fixes python bug related to not creating symlink contained in tarfiles
for missing in 'configure.ac', 'Makefile.in':
if not os.path.islink(os.path.join(os.path.curdir, missing)):
if not os.path.exists(os.path.join(os.path.curdir, missing)):
os.symlink(os.path.join(os.path.curdir, 'base', missing),
os.path.join(os.path.curdir, missing))
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