openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #18601
[Merge] lp:~arjan-i/openlp/check_dependencies_fix_2.0 into lp:openlp/2.0
Arjan Schrijver has proposed merging lp:~arjan-i/openlp/check_dependencies_fix_2.0 into lp:openlp/2.0.
Requested reviews:
OpenLP Core (openlp-core)
Related bugs:
Bug #1095699 in OpenLP: "check_dependencies.py fails on version numbers with letters"
https://bugs.launchpad.net/openlp/+bug/1095699
For more details, see:
https://code.launchpad.net/~arjan-i/openlp/check_dependencies_fix_2.0/+merge/141935
fixed bug #1095699 'check_dependencies.py fails on version numbers with letters'
When version numbers are of type 'str', everything after the first non-numerical character is dropped, so '0.8.0b2' becomes '0.8.0'.
--
https://code.launchpad.net/~arjan-i/openlp/check_dependencies_fix_2.0/+merge/141935
Your team OpenLP Core is requested to review the proposed merge of lp:~arjan-i/openlp/check_dependencies_fix_2.0 into lp:openlp/2.0.
=== modified file 'scripts/check_dependencies.py'
--- scripts/check_dependencies.py 2012-12-30 19:41:24 +0000
+++ scripts/check_dependencies.py 2013-01-04 15:21:26 +0000
@@ -38,6 +38,7 @@
"""
import os
import sys
+import re
is_win = sys.platform.startswith('win')
@@ -90,6 +91,7 @@
def check_vers(version, required, text):
if type(version) is str:
+ version = re.sub(r'[^0-9.].*', r'', version)
version = version.split('.')
version = map(int, version)
if type(required) is str:
Follow ups