preconv name support for git imports

This commit is contained in:
Louis Abel 2024-02-23 09:59:56 -07:00
parent 1255a10ef9
commit f3213dafaf
Signed by: label
GPG Key ID: 2A6975660E424560
1 changed files with 11 additions and 1 deletions

View File

@ -864,8 +864,11 @@ class GitImport(Import):
"""
Returns the translated URL to obtain sources
"""
rpm_name = self.rpm_name
if self.preconv_names:
rpm_name = self.rpm_name_replace
dict_template = {
'PKG_NAME': self.rpm_name,
'PKG_NAME': rpm_name,
'FILENAME': filename,
'HASH_TYPE': hashtype.lower(),
'HASH': checksum
@ -953,6 +956,13 @@ class GitImport(Import):
"""
return self.__dest_lookaside
@property
def preconv_names(self):
"""
Returns if names are being preconverted
"""
return self.__preconv_names
class ModuleImport(Import):
"""
Imports module repos