Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: build/symlink.py

Issue 1233313003: GN (android): Fix md5sum_bin_host not working for component builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improve comment Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/android/md5sum/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/symlink.py
diff --git a/build/symlink.py b/build/symlink.py
index b88f1b65dc1ab7c2fd656155b2f0812f3fb46b19..75a3e4e6d156fb75f3a59d339ecc1e0c4479b0ae 100755
--- a/build/symlink.py
+++ b/build/symlink.py
@@ -26,6 +26,8 @@ def Main(argv):
sources = args[:-1]
for s in sources:
t = os.path.join(target, os.path.basename(s))
+ if len(sources) == 1 and not os.path.isdir(target):
+ t = target
try:
os.symlink(s, t)
except OSError, e:
« no previous file with comments | « no previous file | tools/android/md5sum/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698