[library-web] do not fail when creating version symlink



commit 7df0d77ced554a24a2c6549362663e2206e347f1
Author: Frédéric Péters <fpeters 0d be>
Date:   Sun Jan 26 15:58:42 2014 +0000

    do not fail when creating version symlink

 src/modtypes/base.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/modtypes/base.py b/src/modtypes/base.py
index f0731c5..1166cc3 100644
--- a/src/modtypes/base.py
+++ b/src/modtypes/base.py
@@ -243,6 +243,9 @@ class DocModule(object):
         if not self.one_dot_version in in_version_path:
             return
         if os.path.islink(in_version_path):
-            os.unlink(in_version_path)
+            try:
+                os.unlink(in_version_path)
+            except OSError:
+                return
         os.symlink(tarball_dest, in_version_path)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]