Mercurial > bitten > bitten-test
changeset 513:90ec4de2df6b
Check whether fetching `TargetPlatform` succeeds and adjust log appropriately. Fixes #310
author | dfraser |
---|---|
date | Wed, 11 Mar 2009 12:48:33 +0000 |
parents | a68da2b81220 |
children | 2187988ae4d4 |
files | bitten/queue.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/queue.py +++ b/bitten/queue.py @@ -292,10 +292,15 @@ # Ignore pending builds for deactived build configs config = BuildConfig.fetch(self.env, build.config) if not config.active: + target_platform = TargetPlatform.fetch(self.env, build.platform) + if target_platform: + target_platform_name = '"%s"' % (target_platform.name,) + else: + target_platform_name = 'unknown platform "%s"' % (build.platform,) log.info('Dropping build of configuration "%s" at ' - 'revision [%s] on "%s" because the configuration is ' + 'revision [%s] on %s because the configuration is ' 'deactivated', config.name, build.rev, - TargetPlatform.fetch(self.env, build.platform).name) + target_platform_name) return True # Stay within the revision limits of the build config