- Socket Interface, client: correct EOT behavior


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1522 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-03-27 22:19:46 +00:00
parent dd59c1b146
commit 4518ac8d4f

View File

@@ -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)]