From dbe80e41aff6f0f4162deaa2774ef169eef96c0c Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Fri, 11 Jan 2008 19:47:25 +0000 Subject: [PATCH] - strengthen noclientdb behaviour git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1033 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 6 +++--- libraries/reagentTools.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index dd861f4e0..3faede020 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -62,11 +62,11 @@ class EquoInterface(TextInterface): self.indexing = indexing self.noclientdb = False self.openclientdb = True - if not noclientdb: + if noclientdb in (False,0): self.noclientdb = False - elif noclientdb == True: + elif noclientdb in (True,1): self.noclientdb = True - else: + elif noclientdb == 2: self.noclientdb = True self.openclientdb = False self.xcache = xcache diff --git a/libraries/reagentTools.py b/libraries/reagentTools.py index 2f95776f3..8b62f3022 100644 --- a/libraries/reagentTools.py +++ b/libraries/reagentTools.py @@ -25,7 +25,7 @@ from serverConstants import * from outputTools import * import exceptionTools from entropy import EquoInterface -Entropy = EquoInterface(noclientdb = True) +Entropy = EquoInterface(noclientdb = 2) # Logging initialization import logTools