From a6e41fe5edc1ee74da5de93caf613e913ac26d38 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Feb 20 2018 15:34:43 +0000 Subject: PR#812: Fix AttributeError during archive import Merges #812 https://pagure.io/koji/pull-request/812 Fixes: #811 https://pagure.io/koji/issue/811 AttributeError: 'dict' object has no attribute 'hub.checked_md5' --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 07fa6f9..6f62ffc 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -6121,7 +6121,7 @@ def import_archive_internal(filepath, buildinfo, type, typeInfo, buildroot_id=No archiveinfo['filename'] = filename archiveinfo['size'] = os.path.getsize(filepath) # trust values computed on hub (CG_Importer.prep_outputs) - if not fileinfo or not getattr(fileinfo, 'hub.checked_md5'): + if not fileinfo or not fileinfo.get('hub.checked_md5'): archivefp = open(filepath) m = md5_constructor() while True: