From: John Mandereau Date: Thu, 21 Feb 2008 18:47:27 +0000 (+0100) Subject: Fix www_post failure X-Git-Tag: release/2.11.41-1~24 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4d94b953bb0cf1b4eb9618d590c7f074577046a5;p=lilypond.git Fix www_post failure Don't create symlinks (namely Documentation/user/lilypond) when file/directory already exists. --- 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: