From 4518ac8d4ff6ad0d9753aa0ccc14349a1eb914ee Mon Sep 17 00:00:00 2001 From: lxnay Date: Thu, 27 Mar 2008 22:19:46 +0000 Subject: [PATCH] Entropy: - Socket Interface, client: correct EOT behavior git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1522 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- client/entropy-system-test-client | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/entropy-system-test-client b/client/entropy-system-test-client index d936ab70b..636b74771 100644 --- a/client/entropy-system-test-client +++ b/client/entropy-system-test-client @@ -55,7 +55,9 @@ def spawn(cmd, silent = False, getobj = False): data += x eot = etpConst['socket_service']['answers']['eot'] - if data.endswith(eot): + if data.endswith(eot*2): # if we have two eot it means it's + data = data[:-len(eot)] # been duplicated to avoid to be confused + elif data.endswith(eot): end_of_tmt = True data = data[:-len(eot)]