diff options
author | Martin Brabham <optedoblivion@google.com> | 2022-02-04 19:42:49 +0000 |
---|---|---|
committer | Martin Brabham <optedoblivion@google.com> | 2022-02-14 17:43:55 +0000 |
commit | 247d80bfd37aefc2350bbebc676ab0e814350fa6 (patch) | |
tree | ced108b0e79f5f3b763f02a37a82fad950316265 /build.py | |
parent | fa3e4cb6d0644652dfd2e757f8ad43be1e80af22 (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-x | build.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |