Skip to content

Commit

Permalink
Modify version script to accept patch version equal to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatrascoiu committed Jun 9, 2022
1 parent c613ec7 commit abbdcc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genversion.py
Expand Up @@ -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
Expand Down

0 comments on commit abbdcc7

Please sign in to comment.