From d1db97b3a2bebc9bb3c1078a658a2a390d3a7f7b Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Feb 20 2018 15:25:54 +0000 Subject: 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" --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 51e9a2d..07fa6f9 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -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)