diff --git a/platforms/android/build_sdk.py b/platforms/android/build_sdk.py index 274c02d9faff..5321aef750f3 100755 --- a/platforms/android/build_sdk.py +++ b/platforms/android/build_sdk.py @@ -57,7 +57,7 @@ def determine_opencv_version(version_hpp_path): major = re.search(r'^#define\W+CV_VERSION_MAJOR\W+(\d+)$', data, re.MULTILINE).group(1) minor = re.search(r'^#define\W+CV_VERSION_MINOR\W+(\d+)$', data, re.MULTILINE).group(1) revision = re.search(r'^#define\W+CV_VERSION_REVISION\W+(\d+)$', data, re.MULTILINE).group(1) - version_status = re.search(r'^#define\W+CV_VERSION_STATUS\W+"([^"]*)"', data, re.MULTILINE).group(1) + version_status = re.search(r'^#define\W+CV_VERSION_STATUS\W+"([^"]*)"$', data, re.MULTILINE).group(1) return "%(major)s.%(minor)s.%(revision)s%(version_status)s" % locals() #===================================================================================================