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])
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: