[cwctl] Don't check for old lgc versions
Support for check_duplicated_command in CommandLine was added in 2011
for 0.55, and we already depend on 0.59.0.
--- a/cwctl.py Thu Dec 19 17:21:35 2013 +0100
+++ b/cwctl.py Thu Dec 12 16:18:58 2013 +0100
@@ -48,13 +48,9 @@
from cubicweb.toolsutils import Command, rm, create_dir, underline_title
from cubicweb.__pkginfo__ import version
-if support_args(CommandLine, 'check_duplicated_command'):
- # don't check duplicated commands, it occurs when reloading site_cubicweb
- CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
- version=version, check_duplicated_command=False)
-else:
- CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
- version=version)
+# don't check duplicated commands, it occurs when reloading site_cubicweb
+CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
+ version=version, check_duplicated_command=False)
def wait_process_end(pid, maxtry=10, waittime=1):
"""wait for a process to actually die"""