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:
parent
f12e4c999a
commit
8f09afb007
3
wscript
3
wscript
|
@ -650,7 +650,8 @@ def dist_hook():
|
||||||
shutil.rmtree('a2jmidid')
|
shutil.rmtree('a2jmidid')
|
||||||
nodist_files = ['.gitmodules', 'GTAGS', 'GRTAGS', 'GPATH', 'GSYMS'] # waf does not ignore these file
|
nodist_files = ['.gitmodules', 'GTAGS', 'GRTAGS', 'GPATH', 'GSYMS'] # waf does not ignore these file
|
||||||
for nodist_file in nodist_files:
|
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', "./")
|
shutil.copy('../build/default/version.h', "./")
|
||||||
|
|
||||||
import commands
|
import commands
|
||||||
|
|
Loading…
Reference in New Issue