From c13206df2566daf99f7df1d392c08eca6c95a387 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 24 Jan 2012 18:49:15 +0100 Subject: [PATCH] set distribution to dev_$GIT_BRANCH_NAME for _dev branches --- debian_build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian_build.py b/debian_build.py index 409dbf8..c7884ce 100755 --- a/debian_build.py +++ b/debian_build.py @@ -363,13 +363,18 @@ if __name__ == '__main__': new_log = 'Generated by jenkins build of %s' % git_helper.git_get_commit_id() + if GIT_BRANCH_NAME == 'experimental' or GIT_BRANCH_NAME.startswith('feature/') or GIT_BRANCH_NAME.startswith('poc/') or GIT_BRANCH_NAME.startswith('bugfix/'): + changelog_distro ='dev_'+ GIT_BRANCH_NAME.replace("/","_") + else: + changelog_distro = options.distribution + cmd = [ '/usr/bin/dch', '--newversion', '%s' %(version), '--force-bad-version', '--distribution', - '%s' %(options.distribution), + '%s' %(changelog_distro), '--preserve', '--no-auto-nmu', '--', -- 2.39.5