makepanda: allow passing in more than 3 digits in version number

This commit is contained in:
rdb 2019-08-19 21:57:49 +02:00
parent d028bebb52
commit 2b0a2ea6df
2 changed files with 2 additions and 2 deletions

View File

@ -1071,7 +1071,7 @@ if __name__ == "__main__":
PkgDisable(pkg)
# Parse the version.
match = re.match(r'^\d+\.\d+\.\d+', options.version)
match = re.match(r'^\d+\.\d+(\.\d+)+', options.version)
if not match:
exit("version requires three digits")

View File

@ -225,7 +225,7 @@ def parseopts(args):
elif (option=="--arch"): target_arch = value.strip()
elif (option=="--nocolor"): DisableColors()
elif (option=="--version"):
match = re.match(r'^\d+\.\d+\.\d+', value)
match = re.match(r'^\d+\.\d+(\.\d+)+', value)
if not match:
usage("version requires three digits")
WHLVERSION = value