From: Mathias Klette Date: Wed, 24 Apr 2013 18:28:59 +0000 (+0200) Subject: update debian_build: fix convertion error in exception messages X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=ac4ede73afa95e752f07de053b6690b62a3dde0e;p=profitbricks%2Fjenkins-build-scripts.git update debian_build: fix convertion error in exception messages --- diff --git a/debian_build.py b/debian_build.py index ef08c49..94d54fd 100755 --- a/debian_build.py +++ b/debian_build.py @@ -418,11 +418,15 @@ if __name__ == '__main__': # 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' % allowed_production_distros ) + logger.error( + '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 - - ) + 'Distribution %s in debian/changelog not listed in %s' %( + allowed_production_distros, + )) exit_error() DPUT_OPTIONS = DPUT_OPTIONS_DEFAULT