| |
@@ -5581,7 +5581,7 @@
|
| |
(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)
|
| |
The CHECKSUM_TYPES[...] call returns the index in the Enum field, not a string,
which meant that the comparison would never work.
Reported-by: Clement Verna cverna@tutanota.com
Signed-off-by: Patrick Uiterwijk patrick@puiterwijk.org
Fixes #813