Entropy:
- 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:
@@ -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)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user