gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject svn commit: r1702688 - /gump/live/python/gump/util/sync.py
Date Sun, 13 Sep 2015 00:57:38 GMT
Author: billbarker
Date: Sun Sep 13 00:57:38 2015
New Revision: 1702688

URL: http://svn.apache.org/r1702688
Log:
we don't care if the link is broken, just that it is there

Modified:
    gump/live/python/gump/util/sync.py

Modified: gump/live/python/gump/util/sync.py
URL: http://svn.apache.org/viewvc/gump/live/python/gump/util/sync.py?rev=1702688&r1=1702687&r2=1702688&view=diff
==============================================================================
--- gump/live/python/gump/util/sync.py (original)
+++ gump/live/python/gump/util/sync.py Sun Sep 13 00:57:38 2015
@@ -205,7 +205,7 @@ class PathWalker(Annotatable):
 
             try:
                 if symlinks and os.path.islink(srcname):
-                    if os.path.exists(dstname):
+                    if os.path.lexists(dstname):
                         if os.path.islink(dstname) or os.path.isfile(dstname):
                             os.unlink(dstname)
                         else:
@@ -346,7 +346,7 @@ class PathWalker(Annotatable):
                 log.debug("Attempting copy from [%s] to [%s]"
                           %(`srcname`, `dstname`))
             self.displayAction(True, ' U> ', dstname, reason)
-            if os.path.exists(dstname):
+            if os.path.lexists(dstname):
                 os.remove(dstname)
             shutil.copy2(srcname, dstname)
         #else:



Mime
View raw message