From: Mathias Klette Date: Fri, 6 Jul 2012 16:00:56 +0000 (+0200) Subject: we must accept ":" in version numbers! X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=8e854d0eba1fc4bdc56b234766c91930a414caa1;p=profitbricks%2Fjenkins-build-scripts.git we must accept ":" in version numbers! --- 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)