summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorbpastene <bpastene@chromium.org>2016-01-25 16:31:50 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-26 00:33:20 +0000
commite1758d341770bb9b009483f6de721a1d6f97fcb3 (patch)
tree408cf06429eb2b7733f1bb68509b32eb2640f6ff /build
parent8031e4ce55731df9dd7c5e680877454a670dbc5a (diff)
downloadchromium_src-e1758d341770bb9b009483f6de721a1d6f97fcb3.zip
chromium_src-e1758d341770bb9b009483f6de721a1d6f97fcb3.tar.gz
chromium_src-e1758d341770bb9b009483f6de721a1d6f97fcb3.tar.bz2
dont symlink if it's already correctly linked
BUG=565452 Review URL: https://codereview.chromium.org/1632073002 Cr-Commit-Position: refs/heads/master@{#371380}
Diffstat (limited to 'build')
-rwxr-xr-xbuild/symlink.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/symlink.py b/build/symlink.py
index 75a3e4e..21b79b9 100755
--- a/build/symlink.py
+++ b/build/symlink.py
@@ -28,6 +28,8 @@ def Main(argv):
t = os.path.join(target, os.path.basename(s))
if len(sources) == 1 and not os.path.isdir(target):
t = target
+ if os.path.realpath(t) == s:
+ continue
try:
os.symlink(s, t)
except OSError, e: