From 8e854d0eba1fc4bdc56b234766c91930a414caa1 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Fri, 6 Jul 2012 18:00:56 +0200 Subject: [PATCH] we must accept ":" in version numbers! --- debian_build.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/debian_build.py b/debian_build.py index 071f1e6..788d003 100755 --- a/debian_build.py +++ b/debian_build.py @@ -524,11 +524,9 @@ if __name__ == '__main__': # build was succesful, now let's tag it if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/'): - # replace ~ with _ for tags + # replace valid debian version chars that are invalid for git tagging version_tag = version.replace('~','_') - if version_tag.find(":") != -1 : - logger_error('Illegal character ":" in version "%s" detected. Please use a different version.' % version_tag) - exit_error() + version_tag = version.replace(':',',') cmd = ['/usr/bin/git', 'tag', version_tag] try: subprocess.check_call(cmd) -- 2.39.5