mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-21 20:51:26 +00:00
try conving name for pkg
This commit is contained in:
parent
f3213dafaf
commit
45abe82b40
@ -352,6 +352,7 @@ class SrpmImport(Import):
|
|||||||
distprefix: str = 'el',
|
distprefix: str = 'el',
|
||||||
git_user: str = 'git',
|
git_user: str = 'git',
|
||||||
org: str = 'rpms',
|
org: str = 'rpms',
|
||||||
|
preconv_names: bool = False,
|
||||||
dest_lookaside: str = '/var/www/html/sources',
|
dest_lookaside: str = '/var/www/html/sources',
|
||||||
verify_signature: bool = False,
|
verify_signature: bool = False,
|
||||||
aws_access_key_id: str = '',
|
aws_access_key_id: str = '',
|
||||||
@ -373,7 +374,12 @@ class SrpmImport(Import):
|
|||||||
self.__dest_lookaside = dest_lookaside
|
self.__dest_lookaside = dest_lookaside
|
||||||
|
|
||||||
pkg_name = self.__srpm_metadata['name']
|
pkg_name = self.__srpm_metadata['name']
|
||||||
git_url = f'ssh://{git_user}@{git_url_path}/{org}/{pkg_name}.git'
|
|
||||||
|
package_name = pkg_name
|
||||||
|
if preconv_names:
|
||||||
|
package_name = pkg_name.replace('+', 'plus')
|
||||||
|
|
||||||
|
git_url = f'ssh://{git_user}@{git_url_path}/{org}/{package_name}.git'
|
||||||
self.__git_url = git_url
|
self.__git_url = git_url
|
||||||
|
|
||||||
file_name_search_srpm_res = re.search(r'.*?\.src\.rpm$',
|
file_name_search_srpm_res = re.search(r'.*?\.src\.rpm$',
|
||||||
@ -546,6 +552,14 @@ class SrpmImport(Import):
|
|||||||
"""
|
"""
|
||||||
return self.__srpm_metadata['name']
|
return self.__srpm_metadata['name']
|
||||||
|
|
||||||
|
@property
|
||||||
|
def rpm_name_replace(self):
|
||||||
|
"""
|
||||||
|
Returns name of srpm
|
||||||
|
"""
|
||||||
|
new_name = self.__srpm_metadata['name'].replace('+', 'plus')
|
||||||
|
return new_name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def rpm_version(self):
|
def rpm_version(self):
|
||||||
"""
|
"""
|
||||||
@ -575,14 +589,6 @@ class SrpmImport(Import):
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@property
|
|
||||||
def rpm_name_replace(self):
|
|
||||||
"""
|
|
||||||
Returns a "fixed" version of the RPM name
|
|
||||||
"""
|
|
||||||
new_name = self.__srpm_metadata['name'].replace('+', 'plus')
|
|
||||||
return new_name
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def distprefix(self):
|
def distprefix(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user