workaround for release.log permission denied IOError
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4405 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
be35aed2b3
commit
215600221a
1 changed files with 8 additions and 1 deletions
|
@ -103,7 +103,14 @@ def run(command, log_name, err, wanted_ret = 0, log_dir = '.'):
|
|||
else:
|
||||
cmd = command
|
||||
|
||||
if os.system(cmd) != wanted_ret:
|
||||
ret = os.system(cmd)
|
||||
|
||||
# sleep because for some weird reason, running cvs.exe hugs
|
||||
# the release log for some time after os.system returns
|
||||
import time
|
||||
time.sleep(5)
|
||||
|
||||
if ret != wanted_ret:
|
||||
print '*** ' + err
|
||||
log('*** ' + err, log_dir)
|
||||
exit(log_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue