Skip to content

Commit

Permalink
W1202 fix
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Apr 9, 2015
1 parent c858fba commit ea7cad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions rebasehelper/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,11 @@ def build_packages(self):
raise RebaseHelperError('Building package failed during patching. Check log %s', build_log_path)

if files['missing']:
logger.info('Files not packaged in the SPEC file:\n{f}'.format(f='\n'.join(files['added'])))
missing_files = '\n'.join(files['added'])
logger.info('Files not packaged in the SPEC file:\n%s', missing_files)
elif files['deleted']:
logger.warning('Removed files packaged in SPEC file:\n{f}'.format(
f='\n'.join(files['deleted'])))
deleted_files = '\n'.join(files['deleted'])
logger.warning('Removed files packaged in SPEC file:\n%s', deleted_files)
else:
raise RebaseHelperError("Build failed, but no issues were found in the build log %s", build_log)
self.rebase_spec_file.modify_spec_files_section(files)
Expand Down
1 change: 0 additions & 1 deletion rebasehelper/output_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def match(cls, cmd=None, *args, **kwargs):
raise NotImplementedError()

def print_summary(self, path, **kwargs):

"""
Return list of files which has been changed against old version
This will be used by checkers
Expand Down

0 comments on commit ea7cad5

Please sign in to comment.