From c6c20bedb19c749b0079dde002eca818a7edf46a Mon Sep 17 00:00:00 2001 From: Martin Hermant Date: Thu, 16 Mar 2017 18:47:26 +0100 Subject: [PATCH] =?utf8?q?this=5Fversion.py=20:=20*=20fix=20:=20get=5Faubi?= =?utf8?q?o=5Fversion=20:=20remove=20=E2=80=98.=E2=80=99=20before=20~git?= =?utf8?q?=20*=20fix=20typo=20:=20check=20~alpha=20in=20version=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- this_version.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/this_version.py b/this_version.py index c1ce4228..d8352e64 100644 --- a/this_version.py +++ b/this_version.py @@ -66,11 +66,11 @@ def get_libaubio_version(): def get_aubio_version(add_status=True): - # return string formatted as MAJ.MIN.PATCH.{~git , ''} + # return string formatted as MAJ.MIN.PATCH{~git , ''} 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 @@ def get_aubio_pyversion(add_status=True): 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" % -- 2.11.0