From 655a580afd1718daee9d034c7f6db401876feca3 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 19 Oct 2023 13:51:40 -0700 Subject: [PATCH] pgp keys can go in lookaside --- pv2/importer/operation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index 64eaf1f..00bc4fb 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -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)