mirror of https://gitlab.com/ita1024/waf.git
Remove waf.asc after producing a signed waf file
This commit is contained in:
parent
42622a6e52
commit
b08125520f
11
wscript
11
wscript
|
@ -21,14 +21,10 @@ zip_types = ['bz2', 'gz', 'xz']
|
||||||
|
|
||||||
PRELUDE = ''
|
PRELUDE = ''
|
||||||
|
|
||||||
#from tokenize import *
|
import os, sys, re, io, optparse, tokenize
|
||||||
import tokenize
|
|
||||||
|
|
||||||
import os, sys, re, io, optparse
|
|
||||||
|
|
||||||
from waflib import Utils, Options, Logs, Scripting
|
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
|
|
||||||
|
from waflib import Utils, Options, Logs, Scripting
|
||||||
from waflib import Configure
|
from waflib import Configure
|
||||||
Configure.autoconfig = 1
|
Configure.autoconfig = 1
|
||||||
|
|
||||||
|
@ -359,7 +355,7 @@ def create_waf(self, *k, **kw):
|
||||||
s = chr(i) + chr(j)
|
s = chr(i) + chr(j)
|
||||||
if -1 == kd.find(s.encode()):
|
if -1 == kd.find(s.encode()):
|
||||||
return (kd.replace(ch.encode(), s.encode()), s)
|
return (kd.replace(ch.encode(), s.encode()), s)
|
||||||
raise
|
raise ValueError('Could not find a proper encoding')
|
||||||
|
|
||||||
# The reverse order prevents collisions
|
# The reverse order prevents collisions
|
||||||
(cnt, C3) = find_unused(cnt, '\x00')
|
(cnt, C3) = find_unused(cnt, '\x00')
|
||||||
|
@ -389,6 +385,7 @@ def create_waf(self, *k, **kw):
|
||||||
f.write('#')
|
f.write('#')
|
||||||
f.write(sig)
|
f.write(sig)
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
|
os.remove('waf.asc')
|
||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue