From 8cd6f9efb3c6a916837c5c56524efb2d8be26635 Mon Sep 17 00:00:00 2001 From: Mike Bonnet Date: Fri, 6 Nov 2015 16:27:38 -0500 Subject: [PATCH] fail a build that produces an unknown file type, rather than silently ignoring them --- hub/kojihub.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index 2626a92..908fdfb 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 -- 1.7.1