From 12ce25396b0b006b4c6e2d48c3a4cb306742d892 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 2 Nov 2011 17:02:51 +0100 Subject: [PATCH] provide PB_SUITE --- kernel_build.py | 7 ++++--- kernel_inpbuilder.py | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel_build.py b/kernel_build.py index f9b939a..b8b1988 100644 --- a/kernel_build.py +++ b/kernel_build.py @@ -39,9 +39,10 @@ PBUILDER = '/usr/sbin/pbuilder' SUDO = '/usr/bin/sudo' env = os.environ -env['PB_SUITE'] = os.environ.get('DISTRIBUTION') -if os.environ.get('DISTRIBUTION') == 'production': - env['PB_SUITE'] = 'production-proposed-updates' +PB_SUITE os.environ.get('DISTRIBUTION') +if PB_SUITE == 'production': + PB_SUITE = 'production-proposed-updates' +env['PB_SUITE'] = PB_SUITE # FIXME: move this into own logger Class logger = logging.getLogger(sys.argv[0]) diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index dd1386f..9f89e7d 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -387,6 +387,7 @@ if __name__ == '__main__': if not GIT_BRANCH_NAME: # try to get it from persistence try: + PB_SUITE = os.environ.get('PB_SUITE') kernel_revision_obj = kernel_persistence.get_last_kernel_revision_obj(PB_SUITE) GIT_BRANCH_NAME=kernel_revision_obj.branch except: -- 2.39.5