pgp keys can go in lookaside

This commit is contained in:
Louis Abel 2023-10-19 13:51:40 -07:00
parent 022d4ed03a
commit 655a580afd
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -152,6 +152,11 @@ class Import:
magic = fileutil.get_magic_file(full_path)
if magic.name == 'empty':
continue
# PGP public keys have been in the lookaside before. We'll
# just do it this way. It gets around weird gitignores and
# weird srpmproc behavior.
if 'PGP public' in magic.name:
source_dict[f'SOURCES/{file.name}'] = fileutil.get_checksum(full_path)
if magic.encoding == 'binary':
source_dict[f'SOURCES/{file.name}'] = fileutil.get_checksum(full_path)