From 577dc1255de94a8de713a026e9aea7e07d00a897 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Sat, 4 Dec 2021 09:38:16 +0000 Subject: [PATCH] [WS][build.py][clean] Only delete file if it exists git-svn-id: svn://kolibrios.org@9380 a494cfbc-eb01-0410-851d-a64ba20cac60 --- _tools/workspace/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_tools/workspace/build.py b/_tools/workspace/build.py index e237f42ba1..d3d9b86faf 100644 --- a/_tools/workspace/build.py +++ b/_tools/workspace/build.py @@ -21,7 +21,8 @@ def build(): def clean(): output_file_list = parse_tupfile_outputs("Tupfile.lua") for output_file in output_file_list: - os.remove(output_file) + if os.path.exists(output_file): + os.remove(output_file) def main(argv): if len(argv) == 2 and argv[1] == "clean":