mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-23 21:51:28 +00:00
preconv name support for git imports
This commit is contained in:
parent
1255a10ef9
commit
f3213dafaf
@ -864,8 +864,11 @@ class GitImport(Import):
|
|||||||
"""
|
"""
|
||||||
Returns the translated URL to obtain sources
|
Returns the translated URL to obtain sources
|
||||||
"""
|
"""
|
||||||
|
rpm_name = self.rpm_name
|
||||||
|
if self.preconv_names:
|
||||||
|
rpm_name = self.rpm_name_replace
|
||||||
dict_template = {
|
dict_template = {
|
||||||
'PKG_NAME': self.rpm_name,
|
'PKG_NAME': rpm_name,
|
||||||
'FILENAME': filename,
|
'FILENAME': filename,
|
||||||
'HASH_TYPE': hashtype.lower(),
|
'HASH_TYPE': hashtype.lower(),
|
||||||
'HASH': checksum
|
'HASH': checksum
|
||||||
@ -953,6 +956,13 @@ class GitImport(Import):
|
|||||||
"""
|
"""
|
||||||
return self.__dest_lookaside
|
return self.__dest_lookaside
|
||||||
|
|
||||||
|
@property
|
||||||
|
def preconv_names(self):
|
||||||
|
"""
|
||||||
|
Returns if names are being preconverted
|
||||||
|
"""
|
||||||
|
return self.__preconv_names
|
||||||
|
|
||||||
class ModuleImport(Import):
|
class ModuleImport(Import):
|
||||||
"""
|
"""
|
||||||
Imports module repos
|
Imports module repos
|
||||||
|
Loading…
Reference in New Issue
Block a user