[cwctl] Don't check for old lgc versions
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 12 Dec 2013 16:18:58 +0100
changeset 9371 1348202527a6
parent 9370 15c695d8d865
child 9372 e87a808a4c32
[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.
cwctl.py
--- 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"""