From f3213dafaf5bad20035419bbed7f950dc148774a Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Fri, 23 Feb 2024 09:59:56 -0700 Subject: [PATCH] preconv name support for git imports --- pv2/importer/operation.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index 6362abc..51554e2 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -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