else:
raise Exception('No git_committer_email found')
+ if options.distribution in ('unstable' , 'experimental', 'pre-staging'):
+ pb_suite='pre-staging'
+ elif options.distribution in ('testing', 'staging'):
+ pb_suite='staging'
+ elif options.distribution in ('production', 'production-proposed-updates'):
+ pb_suite='production-proposed-updates'
+
gbp = git_buildpackage.GitBuildPackage(
upstream_branch=GIT_UPSTREAM_BRANCH,
debian_branch=GIT_DEBIAN_BRANCH,
dist='squeeze',
- arch='amd64'
+ arch='amd64',
+ pb_suite=pb_suite
)
logger.info('starting git-buildpackage')
# --git-debian-branch=debian --git-tag
class GitBuildPackage(object):
def __init__(self, upstream_branch=None,
- debian_branch=None, dist=None, arch=None):
+ debian_branch=None, dist=None, arch=None, pb_suite=None):
self.upstream_branch = upstream_branch
self.debian_branch = debian_branch
self.dist = dist
self.arch = arch
+ self.pb_suite = pb_suite
def build(self):
env = os.environ
env['DIST'] = self.dist
+ env['PB_SUITE'] = self.pb_suite
cmdobj = subprocess.Popen(
cmd,