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:
commit
d1db97b3a2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue