From 247d80bfd37aefc2350bbebc676ab0e814350fa6 Mon Sep 17 00:00:00 2001 From: Martin Brabham Date: Fri, 4 Feb 2022 19:42:49 +0000 Subject: 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 --- build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build.py') 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 -- cgit v1.2.3-59-g8ed1b