From c92baff59f520b25a2ba5e43e9230f2078ab7c8a Mon Sep 17 00:00:00 2001 From: lxnay Date: Sun, 1 Jun 2008 14:23:46 +0000 Subject: [PATCH] Entropy/Repository Socket Interface: - some misc fixes git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2071 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index a1b879fca..ed1a62e3b 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -6012,6 +6012,7 @@ class RepoInterface: return data['added'],data['removed'],data['checksum'] def get_eapi3_database_treeupdates(self, repo, compression, session): + self.socket.setdefaulttimeout(20) data = self.eapi3_socket.CmdInterface.get_repository_treeupdates( repo, etpConst['currentarch'], @@ -15776,9 +15777,9 @@ class RepositorySocketServerInterface(SocketHostInterface): if len(myargs) < 3: return None - repository = myargs[1] - arch = myargs[2] - product = myargs[3] + repository = myargs[0] + arch = myargs[1] + product = myargs[2] x = (repository,arch,product,) valid = self.HostInterface.is_repository_available(x) @@ -16247,6 +16248,9 @@ class EntropyRepositorySocketClientCommands(EntropySocketClientCommands): arch, product, ) + print "CMD" + print cmd + print "---" data = self.retrieve_command_answer(cmd, repository, arch, product, compression, session_id) if close_session: