From: Uri Simchoni Date: Mon, 18 May 2015 17:40:11 +0000 (+0300) Subject: waf: always close cross answers file X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=843c373d008cd51940f08a7a291976b6e80a5fbf;p=mat%2Fsamba.git 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 Reviewed-by: Andrew Bartlett Reviewed-by: Alexander Bokovoy --- diff --git a/buildtools/wafsamba/samba_cross.py b/buildtools/wafsamba/samba_cross.py index 3838e34ec4..877ead8581 100644 --- a/buildtools/wafsamba/samba_cross.py +++ b/buildtools/wafsamba/samba_cross.py @@ -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)