mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-09 04:17:30 +08:00
build scripts: prepare for versions like 11.11.11
This commit is contained in:
parent
218e4b53a6
commit
209507a0d8
@ -400,7 +400,7 @@ def validate_args(usage, options):
|
|||||||
# [ version ]
|
# [ version ]
|
||||||
def check_project_version(version):
|
def check_project_version(version):
|
||||||
'''A valid version must be like 1.2.2, 1.3'''
|
'''A valid version must be like 1.2.2, 1.3'''
|
||||||
if not re.match(r'^[0-9](\.[0-9]+)+$', version):
|
if not re.match(r'^[0-9]+(\.[0-9]+)+$', version):
|
||||||
error('%s is not a valid version' % version, usage=usage)
|
error('%s is not a valid version' % version, usage=usage)
|
||||||
|
|
||||||
mode = get_option(CONF_MODE).lower()
|
mode = get_option(CONF_MODE).lower()
|
||||||
|
@ -370,7 +370,7 @@ def validate_args(usage, options):
|
|||||||
# [ version ]
|
# [ version ]
|
||||||
def check_project_version(version):
|
def check_project_version(version):
|
||||||
'''A valid version must be like 1.2.2, 1.3'''
|
'''A valid version must be like 1.2.2, 1.3'''
|
||||||
if not re.match('^[0-9]+(\.([0-9])+)+$', version):
|
if not re.match(r'^[0-9]+(\.[0-9]+)+$', version):
|
||||||
error('%s is not a valid version' % version, usage=usage)
|
error('%s is not a valid version' % version, usage=usage)
|
||||||
|
|
||||||
version = get_option(CONF_VERSION)
|
version = get_option(CONF_VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user