From 38d4b04f5ed85ffc4a218ff5fc0118177e143ee0 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 5 Feb 2010 20:23:35 -0800 Subject: Fix up some logging --- src/pyfedpkg/__init__.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/pyfedpkg/__init__.py') diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index b2bf964..8b0c486 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -343,8 +343,10 @@ class PackageModule: if chain: ancestors = self.kojisession.getFullInheritance(build_target['build_tag']) if dest_tag['id'] not in [build_target['build_tag']] + [ancestor['parent_id'] for ancestor in ancestors]: - raise FedpkgError('Packages in destination tag %(dest_tag_name)s \ - are not inherited by build tag %(build_tag_name)s' % build_target) + raise FedpkgError('Packages in destination tag ' \ + '%(dest_tag_name)s are not inherited by' \ + 'build tag %(build_tag_name)s' % + build_target) # define our dictionary for options opts = {} # Set a placeholder for the build priority @@ -356,16 +358,19 @@ class PackageModule: if background: priority = 5 # magic koji number :/ - log.debug('Building %s for %s with options %s and a priority of %s' % - (url, self.target, opts, priority)) # Now submit the task and get the task_id to return # Handle the chain build version if chain: chain[-1].append(url) + log.debug('Building chain %s for %s with options %s and a ' \ + 'priority of %s' % + (chain, self.target, opts, priority)) task_id = self.kojisession.chainBuild(chain, self.target, opts, priority=priority) # Now handle the normal build else: + log.debug('Building %s for %s with options %s and a priority of %s' % + (url, self.target, opts, priority)) task_id = self.kojisession.build(url, self.target, opts, priority=priority) log.info('Created task: %s' % task_id) -- cgit