]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix www_post failure
authorJohn Mandereau <john.mandereau@gmail.com>
Thu, 21 Feb 2008 18:47:27 +0000 (19:47 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Thu, 21 Feb 2008 18:47:27 +0000 (19:47 +0100)
Don't create symlinks (namely Documentation/user/lilypond) when
file/directory already exists.

buildscripts/www_post.py

index 26cd613e4cdad36764c976bb424b124bc1638b08..e27aeb7d2ee02807205ba95507c793026dff18a4 100644 (file)
@@ -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: