From 22ca716392b1249f83a3fd00315fff357d7b5b9a Mon Sep 17 00:00:00 2001 From: Mike Bonnet Date: Fri, 6 Nov 2015 18:45:09 -0500 Subject: [PATCH] fail a build that produces an unknown file type, rather than silently ignoring them --- hub/kojihub.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index 2626a92..e4e36fc 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -10319,8 +10319,8 @@ class HostExports(object): continue archivetype = get_archive_type(filename) if not archivetype: - # Unknown archive type, skip it - continue + # Unknown archive type, fail the build + raise koji.BuildError, 'unsupported file type: %s' % filename import_archive(filepath, build_info, 'maven', dir_maven_info, maven_buildroot_id) # move the logs to their final destination @@ -10438,8 +10438,8 @@ class HostExports(object): for relpath, metadata in results['output'].iteritems(): archivetype = get_archive_type(relpath) if not archivetype: - # Unknown archive type, skip it - continue + # Unknown archive type, fail the build + raise koji.BuildError, 'unsupported file type: %s' % filename filepath = os.path.join(task_dir, relpath) metadata['relpath'] = os.path.dirname(relpath) import_archive(filepath, build_info, 'win', metadata, buildroot_id=results['buildroot_id']) -- 1.7.1