[WS][build.py][clean] Only delete file if it exists
git-svn-id: svn://kolibrios.org@9380 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
93196a1995
commit
577dc1255d
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user