aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/bootstrap.py
diff options
context:
space:
mode:
authorcdeler <serj.krotov@gmail.com>2018-12-08 21:18:53 +0300
committercdeler <serj.krotov@gmail.com>2018-12-08 21:26:15 +0300
commit8e1ef081278c738d5f8cf3dc26d19a8fdf05862e (patch)
tree225f24ee7d79571f36f04777bf8f0dcb3c0bc26e /python/servo/bootstrap.py
parent8fb1b567fa87a66d3a962060716e3be794ea66b2 (diff)
downloadservo-8e1ef081278c738d5f8cf3dc26d19a8fdf05862e.tar.gz
servo-8e1ef081278c738d5f8cf3dc26d19a8fdf05862e.zip
Fixup the issue related with an incorrect distro version string handling
Diffstat (limited to 'python/servo/bootstrap.py')
-rw-r--r--python/servo/bootstrap.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/servo/bootstrap.py b/python/servo/bootstrap.py
index 4f3f84ebcae..4f9744a7c17 100644
--- a/python/servo/bootstrap.py
+++ b/python/servo/bootstrap.py
@@ -345,7 +345,10 @@ def get_linux_distribution():
distro, version, _ = platform.linux_distribution()
if distro == 'LinuxMint':
- major, minor = version.split('.')
+ if '.' in version:
+ major, _ = version.split('.', 1)
+ else:
+ major = version
if major == '19':
base_version = '18.04'