diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-02-05 20:23:35 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-02-05 20:23:35 -0800 |
commit | 38d4b04f5ed85ffc4a218ff5fc0118177e143ee0 (patch) | |
tree | 24f07e991944f489bd989d8e03e78c31311351ab /src/pyfedpkg/__init__.py | |
parent | f63dfe31ee6a93eac5462e6a72d43e981c411b7b (diff) | |
download | fedora-packager-38d4b04f5ed85ffc4a218ff5fc0118177e143ee0.tar.gz fedora-packager-38d4b04f5ed85ffc4a218ff5fc0118177e143ee0.tar.xz fedora-packager-38d4b04f5ed85ffc4a218ff5fc0118177e143ee0.zip |
Fix up some logging
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r-- | src/pyfedpkg/__init__.py | 13 |
1 files changed, 9 insertions, 4 deletions
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) |