From 8b9aa559c82f3d4a22e3836a3deed9b02e12893a Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Feb 03 2021 10:04:38 +0000 Subject: fix the mode of tarfile.open fixes: #2641 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index a7efcd5..c59aed8 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -4939,7 +4939,7 @@ def _get_tarball_list(archive_id, tarpath): result = [] if not os.path.exists(tarpath): return result - with tarfile.open(tarpath, 'rb') as archive: + with tarfile.open(tarpath, 'r') as archive: for entry in archive: filename = koji.fixEncoding(entry.name) result.append({'archive_id': archive_id,