hotfix: ~bootstrap should be removed from tag

This commit is contained in:
Louis Abel 2023-11-07 10:36:28 -07:00
parent f4499ca17d
commit 95c701aa38
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -160,6 +160,11 @@ class Import:
if magic.encoding == 'binary':
source_dict[f'SOURCES/{file.name}'] = fileutil.get_checksum(full_path)
# This is a list of possible file names that should be in
# lookaside, even if their type ISN'T that.
if full_path.endswith('.rpm'):
source_dict[f'SOURCES/{file.name}'] = fileutil.get_checksum(full_path)
return source_dict
@staticmethod
@ -553,7 +558,9 @@ class SrpmImport(Import):
"""
Returns release of srpm
"""
return self.__srpm_metadata['release']
# Remove ~bootstrap
final_string = self.__srpm_metadata['release'].replace('~bootstrap', '')
return final_string
@property
def part_of_module(self):