From dc68cbb77611852151c4e9a27489e48b0ba9545d Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 26 Dec 2024 23:49:55 -0700 Subject: [PATCH] make sure certs are in SOURCES --- pv2/importer/operation.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index 2da0ca5..e24742d 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -165,8 +165,13 @@ class Import: # 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) + # Going to allow PGP keys again. + continue + # binary files should be brought to lookaside, but certificate + # files in binary format don't have to be, it doesn't quite + # make sense. this should get around that. + if magic.encoding == 'binary' and 'Certificate,' not in magic.name: source_dict[f'SOURCES/{file.name}'] = fileutil.get_checksum(full_path) # This is a list of possible file names that should be in