ref: c6c20bedb19c749b0079dde002eca818a7edf46a
parent: 07bfe2d2908148f5e7222bfba32b62272f18554e
author: Martin Hermant <martin.hermant@gmail.com>
date: Thu Mar 16 14:47:26 EDT 2017
this_version.py : * fix : get_aubio_version : remove ‘.’ before ~git * fix typo : check ~alpha in version status
--- a/this_version.py
+++ b/this_version.py
@@ -66,11 +66,11 @@
def get_aubio_version(add_status=True):
- # return string formatted as MAJ.MIN.PATCH.{~git<sha> , ''}
+ # return string formatted as MAJ.MIN.PATCH{~git<sha> , ''}
vdict = get_version_info()
verstr = '%s.%s.%s' % get_aubio_version_tuple()
if add_status and vdict['AUBIO_VERSION_STATUS']:
- verstr += "." + vdict['AUBIO_VERSION_STATUS']
+ verstr += vdict['AUBIO_VERSION_STATUS']
return verstr
@@ -83,7 +83,7 @@
if add_status and vdict['AUBIO_VERSION_STATUS']:
if '~git' in vdict['AUBIO_VERSION_STATUS']:
verstr += "+a0." + vdict['AUBIO_VERSION_STATUS'][1:]
- elif '~alpha':
+ elif '~alpha' in vdict['AUBIO_VERSION_STATUS']:
verstr += "+a0"
else:
raise SystemError("Aubio version statut not supported : %s" %