aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2015-06-23 09:38:34 +0100
committerStevan Radaković <stevan.radakovic@linaro.org>2015-06-25 13:46:45 +0000
commit1f6e80e0016c9c52c63dd0d8df37128bbcf167c3 (patch)
treefc8a9e9a88da9aa7e451c3347012b36fb3a2a331
parent120a0103df134e9fdebc5db2a3a9f646b599c066 (diff)
Drop unusual and unsupported version handlingrelease-0.13
Non-PEP386 compliant versions were a legacy of deployment-tool methods and have no remaining purpose. The calls themselves are obsolete. bug #1659 Change-Id: I126c30cbcff4d43a7cb3ebbc1010c1c73ba18229 Reviewed-on: https://review.linaro.org/6660 Reviewed-by: lava-bot <lava-bot@linaro.org> Reviewed-by: Stevan Radaković <stevan.radakovic@linaro.org>
-rw-r--r--lava_dashboard_tool/commands.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/lava_dashboard_tool/commands.py b/lava_dashboard_tool/commands.py
index 8b75fbd..60e4693 100644
--- a/lava_dashboard_tool/commands.py
+++ b/lava_dashboard_tool/commands.py
@@ -368,18 +368,9 @@ class XMLRPCCommand(Command):
def _check_server_version(self, server_obj, required_version):
"""
- Check that server object has is at least required_version.
-
- This method may raise InsufficientServerVersion.
+ Obsolete function dating from pre-packaging requirements
"""
- from distutils.version import StrictVersion, LooseVersion
- # For backwards compatibility the server reports
- # major.minor.micro.releaselevel.serial which is not PEP-386 compliant
- server_version = StrictVersion(
- self._strict_server_version(server_obj.version()))
- required_version = StrictVersion(required_version)
- if server_version < required_version:
- raise InsufficientServerVersion(server_version, required_version)
+ return True
def __init__(self, parser, args):
super(XMLRPCCommand, self).__init__(parser, args)