distribution = distribution.strip()
logger.info('Package distribution is %s' % (distribution))
- if (options.distribution in ('testing', 'staging') and not distribution in ('testing', 'staging')) \
- or (options.distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates') and not distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates')) \
- or (options.distribution in ('unstable', 'pre-staging') and not distribution in ('unstable', 'pre-staging', 'UNRELEASED')):
+ if (options.distribution in ('testing', 'staging') and not distribution in ('testing', 'staging')) or (options.distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates') and not distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates')) or (options.distribution in ('unstable', 'pre-staging') and not distribution in ('unstable', 'pre-staging', 'UNRELEASED')):
logger_loud_error('Distribution %s in debian/changelog did not match branch %s' % (distribution, options.distribution))
raise Exception(
'Distribution %s in debian/changelog did not match branch %s' % (distribution, options.distribution)