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

Unified Diff: dart/tools/make_links.py

Issue 11418061: Fix link bug correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/make_links.py
diff --git a/dart/tools/make_links.py b/dart/tools/make_links.py
index abec0608e5bb4416c410bf80600f6e4956bbf60f..e053d834941bc8ccad0f86fdfc45443cce5e70e1 100644
--- a/dart/tools/make_links.py
+++ b/dart/tools/make_links.py
@@ -21,16 +21,17 @@ import utils
def make_link(source, target):
- if os.path.islink(target):
- os.unlink(target)
-
# TODO(ahe): Remove this code when the build bots are green again.
- bug_cleanup = os.path.join(source, 'lib')
+ bug_cleanup = os.path.join(target, 'lib')
ahe 2012/11/19 11:50:11 Using target here as source is relative to BUILD_R
if os.path.islink(bug_cleanup):
print 'Removing %s' % bug_cleanup
+ sys.stdout.flush()
os.unlink(bug_cleanup)
# End of temporary code.
+ if os.path.islink(target):
+ os.unlink(target)
+
if utils.GuessOS() == 'win32':
return subprocess.call(['mklink', '/j', target, source])
else:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698