From 207137a5c9b274ff47cbcc31c2422a4fa747067f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 17 Sep 2011 18:46:52 +0200 Subject: [PATCH] fix logic --- debian_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian_build.py b/debian_build.py index 9b51263..b412be1 100755 --- a/debian_build.py +++ b/debian_build.py @@ -422,9 +422,9 @@ if __name__ == '__main__': distribution = grep_dctrl.stdout.readline() distribution = distribution.strip() logger.info('Packet 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 distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates')): + 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')): raise Exception( - 'Distribution %s in debian/changelog did not match branch %s' % (distribution, GIT_UPSTREAM_BRANCH) + 'Distribution %s in debian/changelog did not match branch %s' % (distribution, options.distribution) ) exit_error() -- 2.39.5