release.py: Allow an extra version number.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-05-25 13:32:02 -04:00
parent d7039f0c31
commit 462fac9307

View File

@ -65,7 +65,7 @@ if __name__ == '__main__':
print 'Check version string for validity.'
(u, v) = sys.argv[1:]
if not re.match(r'^\d+\.\d+\.\d+\w*$', v):
if not re.match(r'^\d+\.\d+\.\d+(\.\d+)?\w*$', v):
error('Invalid version string: '
'must be of the form MAJOR.MINOR.PATCHLEVEL.')