ALBS-987: Generate i686 and dev repositories with pungi on building new distr. version automatically #15
@ -152,9 +152,16 @@ class PackageSetBase(kobo.log.LoggingBase):
|
||||
"""
|
||||
|
||||
def nvr_formatter(package_info):
|
||||
# joins NVR parts of the package with '-' character.
|
||||
return "-".join(
|
||||
(package_info["name"], package_info["version"], package_info["release"])
|
||||
if package_info['epoch'] is not None:
|
||||
epoch_suffix = ':' + package_info['epoch']
|
||||
else:
|
||||
soksanichenko marked this conversation as resolved
|
||||
epoch_suffix = ''
|
||||
return (
|
||||
f"{package_info['name']}"
|
||||
f"{epoch_suffix}-"
|
||||
f"{package_info['version']}-"
|
||||
f"{package_info['release']}."
|
||||
f"{package_info['arch']}"
|
||||
)
|
||||
|
||||
def get_error(sigkeys, infos):
|
||||
|
Loading…
Reference in New Issue
Block a user
unnecessary
else
statement, you can declareepoch_suffix
beforeif
statement