check all existing btypes

This commit is contained in:
Tomas Kopecek 2017-06-06 11:41:55 +02:00 committed by Mike McLean
parent b81159bc2d
commit 6ad3d65a91

View file

@ -5626,6 +5626,7 @@ class CG_Importer(object):
btype = key
type_info = extra['typeinfo'][key]
btype = lookup_name('btype', btype, strict=False)
if btype is None:
raise koji.GenericError("No typeinfo for: %(filename)s" % fileinfo)
@ -5633,9 +5634,6 @@ class CG_Importer(object):
raise koji.GenericError('Output type %s not listed in build '
'types' % btype)
if btype not in legacy_types:
raise koji.BuildError('unsupported archive type: %s' % type)
if koji.CHECKSUM_TYPES[fileinfo['checksum_type']] != 'md5':
# XXX
# until we change the way we handle checksums, we have to limit this to md5