From ce4ae7ea0b912083f9f5fcd5eda03306ff93886c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Mon, 8 Nov 2010 14:49:47 +0000 Subject: [PATCH] - 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 --- buildout/hooks/ghostscript-hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildout/hooks/ghostscript-hooks.py b/buildout/hooks/ghostscript-hooks.py index 08c85f5e3f..c39936894d 100644 --- a/buildout/hooks/ghostscript-hooks.py +++ b/buildout/hooks/ghostscript-hooks.py @@ -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)) -- 2.30.9