Commit ad17ae3e authored by Rafael Monnerat's avatar Rafael Monnerat

Get Only the 3 first numbers of version (others are not relevant for this tool).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32499 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 45d8d248
...@@ -433,11 +433,11 @@ class IntrospectionTool(LogMixin, BaseTool): ...@@ -433,11 +433,11 @@ class IntrospectionTool(LogMixin, BaseTool):
erp5_version = None erp5_version = None
from App import version_txt from App import version_txt
zope_version = tuple_to_format_str(version_txt.getZopeVersion()[:2]) zope_version = tuple_to_format_str(version_txt.getZopeVersion()[:3])
from sys import version_info from sys import version_info
# Get only x.x.x numbers. # Get only x.x.x numbers.
py_version = tuple_to_format_str(version_info) py_version = tuple_to_format_str(version_info[:3])
try: try:
import pysvn import pysvn
# Convert tuple to x.x.x format # Convert tuple to x.x.x format
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment