mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated to f string
This commit is contained in:
parent
16f3326d04
commit
806c414b02
1 changed files with 4 additions and 4 deletions
|
@ -68,8 +68,8 @@ class Upgrade(Configs):
|
|||
inst_pkg: str = f'{name}-{inst_version}'
|
||||
|
||||
logger = logging.getLogger(LoggingConfig.date)
|
||||
logger.info('%s: %s: %s', self.__class__.__name__,
|
||||
self.__class__.is_package_upgradeable.__name__,
|
||||
logger.info(f'{self.__class__.__name__}: '
|
||||
f'{self.__class__.is_package_upgradeable.__name__}: '
|
||||
f'{repo_tag=}, {repo_pkg=}, {inst_pkg=}, {parse(repo_pkg) > parse(inst_pkg)}, '
|
||||
f'{parse(repo_pkg) == parse(inst_pkg) and parse(repo_build) > parse(inst_build)}')
|
||||
|
||||
|
@ -83,8 +83,8 @@ class Upgrade(Configs):
|
|||
|
||||
except InvalidVersion:
|
||||
logger = logging.getLogger(LoggingConfig.date)
|
||||
logger.exception('%s: %s: %s', self.__class__.__name__,
|
||||
self.__class__.is_package_upgradeable.__name__,
|
||||
logger.exception(f'{self.__class__.__name__}: '
|
||||
f'{self.__class__.is_package_upgradeable.__name__}: '
|
||||
f'{repo_tag=}, {repo_pkg=}, {inst_pkg=}, {repo_pkg > inst_pkg}, '
|
||||
f'{repo_pkg == inst_pkg and repo_build > inst_build}')
|
||||
|
||||
|
|
Loading…
Reference in a new issue