PR#796: Fix comparison with Enum value

Merges #796
https://pagure.io/koji/pull-request/796

Fixes: #813
https://pagure.io/koji/issue/813
cg imports fail with "Unsupported checksum type"
This commit is contained in:
Mike McLean 2018-02-20 10:25:54 -05:00
commit d1db97b3a2

View file

@ -5579,7 +5579,7 @@ class CG_Importer(object):
(filesize, fileinfo['filename'], fileinfo['filesize']))
# checksum
if koji.CHECKSUM_TYPES[fileinfo['checksum_type']] != 'md5':
if fileinfo['checksum_type'] != 'md5':
# XXX
# until we change the way we handle checksums, we have to limit this to md5
raise koji.GenericError("Unsupported checksum type: %(checksum_type)s" % fileinfo)