mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
waf: always close cross answers file
When configuring samba for cross-compilation using the cross-answers file, the file is not closed in a couple of cases - fix that. Signed-off-by: Uri Simchoni <urisimchoni@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
0dcf535795
commit
843c373d00
@ -58,8 +58,10 @@ def cross_answer(ca_file, msg):
|
||||
f.close()
|
||||
return ANSWER_FAIL
|
||||
elif ans[0] == '"':
|
||||
f.close()
|
||||
return (0, ans.strip('"'))
|
||||
elif ans[0] == "'":
|
||||
f.close()
|
||||
return (0, ans.strip("'"))
|
||||
else:
|
||||
m = re.match('\(\s*(-?\d+)\s*,\s*\"(.*)\"\s*\)', ans)
|
||||
|
Loading…
Reference in New Issue
Block a user