From 4d94b953bb0cf1b4eb9618d590c7f074577046a5 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Thu, 21 Feb 2008 19:47:27 +0100 Subject: [PATCH] Fix www_post failure Don't create symlinks (namely Documentation/user/lilypond) when file/directory already exists. --- buildscripts/www_post.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildscripts/www_post.py b/buildscripts/www_post.py index 26cd613e4c..e27aeb7d2e 100644 --- a/buildscripts/www_post.py +++ b/buildscripts/www_post.py @@ -78,7 +78,9 @@ for t in targets: os.link (f, strip_file_name[t] (f)) for l in symlinks: p = mirrortree.new_link_path (os.path.normpath (os.readlink (l)), os.path.dirname (l), strip_re) - os.symlink (p, strip_file_name[t] (l)) + dest = strip_file_name[t] (l) + if not os.path.exists (dest): + os.symlink (p, dest) # need this for content negotiation with documentation index if 'online' in targets: -- 2.39.5