From 0ac7704750f6c2a8c96cc1c2a3830bd5418deb22 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 2 Nov 2011 17:09:23 +0100 Subject: [PATCH] jaja --- kernel_inpbuilder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 6bf88b1..5277e9b 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -381,15 +381,16 @@ if __name__ == '__main__': os.environ['WORKSPACE']=cmd_folder # needed by kernel_persistence import kernel_persistence + PB_SUITE = os.environ.get('PB_SUITE') + GIT_BRANCH_NAME = ( os.environ.get('GIT_BRANCH_NAME') or options.git_branch_name ) 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 + GIT_BRANCH_NAME=kernel_revision_obj.branch_name except: logger.error('No git branch name given and no persistence for %s neither' % PB_SUITE) exit(ERROR) -- 2.39.5