Fix AttributeError during archive import

Fixes #811

Signed-off-by: Mikolaj Izdebski <mizdebsk@redhat.com>
This commit is contained in:
Mikolaj Izdebski 2018-02-20 13:55:14 +01:00 committed by Mike McLean
parent d1db97b3a2
commit 276d519ef8

View file

@ -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: