From a69a651356382c0685393a8417912aab1b3bae28 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 2 Nov 2011 13:05:35 +0100 Subject: [PATCH] add debug --- kernel_persistence.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel_persistence.py b/kernel_persistence.py index 1971474..2c5d5c6 100644 --- a/kernel_persistence.py +++ b/kernel_persistence.py @@ -50,6 +50,7 @@ class KernelVersion(Base): def get_last_kernel_revision_obj(branch): session = Session() logger.debug('Getting kernel revision from persistence') + if branch == 'master' or branch.startswith('hotfix'): persistence_identifier = 'master' elif branch.startswith('release'): @@ -57,6 +58,7 @@ def get_last_kernel_revision_obj(branch): else: # FIXME: feature branch handling persistence_identifier = 'develop' + logger.debug('branch = %s, persistence_identifier = %s' % (branch, persistence_identifier)) try: answ = session.query(KernelVersion).filter( -- 2.39.5