summaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorMartin Brabham <optedoblivion@google.com>2022-02-04 19:42:49 +0000
committerMartin Brabham <optedoblivion@google.com>2022-02-14 17:43:55 +0000
commit247d80bfd37aefc2350bbebc676ab0e814350fa6 (patch)
treeced108b0e79f5f3b763f02a37a82fad950316265 /build.py
parentfa3e4cb6d0644652dfd2e757f8ad43be1e80af22 (diff)
Fix --run-bootstrap for build.py
FileNotFound exception when unlinking a non-existent path. Bug: 217952161 Test: Bootstrap completes when common-mk folder doesn't exist Tag: #floss Change-Id: Id7dba2a68e67353a557b2745c33d5b974e595470
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.py b/build.py
index c62b800604..0bdbd16f48 100755
--- a/build.py
+++ b/build.py
@@ -610,7 +610,10 @@ class Bootstrap():
# Create symlinks
for pairs in symlinks:
(src, dst) = pairs
- os.unlink(dst)
+ try:
+ os.unlink(dst)
+ except Exception as e:
+ print(e)
os.symlink(src, dst)
# Write to setup complete file so we don't repeat this step