From 9dd7a403c2bd590ba30ae21a1ea62d4507e936a8 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Feb 20 2018 12:55:21 +0000 Subject: Fix AttributeError during archive import Fixes #811 Signed-off-by: Mikolaj Izdebski --- diff --git a/hub/kojihub.py b/hub/kojihub.py index eb9b67d..5253cf9 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -6123,7 +6123,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: