summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2013-02-09 15:46:02 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2013-02-09 15:46:02 -0500
commit22b92437c1ae672297bed8567b335ef7da100103 (patch)
tree8fc2134cbb9aa92ee6ff62f317213373d3d7a605
parent23775a043edca5c979b3d47288364d0484e7a919 (diff)
downloaddotfiles-22b92437c1ae672297bed8567b335ef7da100103.tar.gz
dotfiles-22b92437c1ae672297bed8567b335ef7da100103.tar.bz2
dotfiles-22b92437c1ae672297bed8567b335ef7da100103.zip
Fix link detection when target is itself a symlink
This shows up on OSX where /tmp is actually a symlink to /private/tmp.
-rw-r--r--dotfiles/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/dotfiles/utils.py b/dotfiles/utils.py
index 15a82d8..28f2212 100644
--- a/dotfiles/utils.py
+++ b/dotfiles/utils.py
@@ -19,5 +19,4 @@ def is_link_to(path, target):
def normalize(path):
return os.path.normcase(os.path.normpath(path))
return islink(path) and \
- normalize(realpath(path)) == normalize(target)
-
+ normalize(realpath(path)) == normalize(realpath(target))