From abbdcc79d14f49411e761d044e5fa083907c19d1 Mon Sep 17 00:00:00 2001 From: Mihai Patrascoiu Date: Fri, 17 Sep 2021 11:55:18 +0200 Subject: [PATCH] Modify version script to accept patch version equal to zero --- genversion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genversion.py b/genversion.py index c2dc8c01..a53544bd 100755 --- a/genversion.py +++ b/genversion.py @@ -47,10 +47,10 @@ def __init__(self, major, minor, patch, miniPatch=None): def toString(self): ret = "{0}.{1}".format(self.major, self.minor) - if self.patch or self.miniPatch: + if self.patch is not None: ret += ".{0}".format(self.patch) - if self.miniPatch: + if self.miniPatch is not None: ret += ".{0}".format(self.miniPatch) return ret