# enforce correct distribution in debian/changelog for master and hotfix branches
allowed_production_distros=('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates')
if (GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/')) and not distribution in allowed_production_distros:
- logger.error(
- 'Distribution %s in debian/changelog not listed in %s' %(
+ message = 'Distribution %s in debian/changelog not listed in %s' %(
distribution,
allowed_production_distros
- ))
- raise Exception(
- 'Distribution %s in debian/changelog not listed in %s' %(
- allowed_production_distros,
- ))
+ )
+ logger.error(message)
+ raise Exception(message)
exit_error()
DPUT_OPTIONS = DPUT_OPTIONS_DEFAULT