diff --git a/src/laniakea/archive/pkgimport.py b/src/laniakea/archive/pkgimport.py index d8cd8c35..bf67e211 100644 --- a/src/laniakea/archive/pkgimport.py +++ b/src/laniakea/archive/pkgimport.py @@ -95,6 +95,7 @@ def verify_hashes(file: T.Union[ChangesFileEntry, ArchiveFile], local_fname: T.U """Verifies all known hashes of :file""" hashes_checked = 0 with open(local_fname, 'rb') as f: + hash_okay = False # pylint: disable=not-an-iterable for hash in Hashes(f).hashes: # type: ignore if hash.hashtype == 'MD5Sum': diff --git a/src/lkarchive/data_import.py b/src/lkarchive/data_import.py index a2cdf043..61e15deb 100644 --- a/src/lkarchive/data_import.py +++ b/src/lkarchive/data_import.py @@ -318,7 +318,7 @@ def export_package_list(suite_name: str, result_fname: T.PathUnion, repo_name: T .all() ) - with open(os.path.abspath(result_fname), 'w', encoding='utf-8') as f: + with open(os.path.abspath(str(result_fname)), 'w', encoding='utf-8') as f: for info in spkg_info: f.write('{} {} source\n'.format(info[0], info[1])) for info in bpkg_info: