wscript: dont try to remove non-existing files

dist tarball creation code will not attempt to remove non-existing files anymore
This was causing exception raise
This commit is contained in:
Nedko Arnaudov 2010-10-30 17:43:38 +03:00
parent f12e4c999a
commit 8f09afb007
1 changed files with 2 additions and 1 deletions

View File

@ -650,7 +650,8 @@ def dist_hook():
shutil.rmtree('a2jmidid')
nodist_files = ['.gitmodules', 'GTAGS', 'GRTAGS', 'GPATH', 'GSYMS'] # waf does not ignore these file
for nodist_file in nodist_files:
os.remove(nodist_file)
if os.access(nodist_file, os.F_OK):
os.remove(nodist_file)
shutil.copy('../build/default/version.h', "./")
import commands