[entropy.services.repository] properly enable Repository commands when repository_lock_scanner is available

This commit is contained in:
Fabio Erculiani
2010-07-25 14:42:26 +02:00
parent 1290f34088
commit bee87b080d
@@ -53,7 +53,7 @@ class Server(SocketHost):
etpConst['socketloglevel'] = 1
if 'external_cmd_classes' not in kwargs:
kwargs['external_cmd_classes'] = []
if not repository_lock_scanner:
if repository_lock_scanner:
kwargs['external_cmd_classes'].insert(0,
self.__repository_commands_class)
SocketHost.__init__(