From: Holger Levsen Date: Wed, 15 Feb 2012 16:20:58 +0000 (+0100) Subject: spaghetti code is starting to hurt X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=679998b6d66c10b5d4bbd53840f152c77c45b1aa;p=profitbricks%2Fjenkins-build-scripts.git spaghetti code is starting to hurt --- diff --git a/debian_build.py b/debian_build.py index 6799289..905dbb3 100755 --- a/debian_build.py +++ b/debian_build.py @@ -418,7 +418,7 @@ if __name__ == '__main__': cmd = ['/usr/bin/git', 'commit', '-a', '-m', 'add new changelog entry'] subprocess.check_call(cmd) - if options.distribution in ('experimental'): + if GIT_BRANCH_NAME == 'experimental' or GIT_BRANCH_NAME.startswith('feature/') or GIT_BRANCH_NAME.startswith('poc/') or GIT_BRANCH_NAME.startswith('bugfix/'): pb_suite=changelog_distro elif GIT_BRANCH_NAME.startswith('release/') or options.distribution in ('unstable' , 'pre-staging'): pb_suite='pre-staging'