From 7f92fb4aef1fe59f5a1ed6009e8c002482ada494 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mar 04 2019 14:35:10 +0000 Subject: fix checksum validation in CG_Importer Fixes: #1314 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 4124344..c100da0 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -5843,7 +5843,7 @@ class CG_Importer(object): # 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) - with open(path) as fp: + with open(path, 'rb') as fp: m = md5_constructor() while True: contents = fp.read(8192)