Skip to content

Commit c7a3796

Browse files
authored
Merge pull request #18 from fosslight/develop
Remove '.' for version logging
2 parents 1b69b32 + 38078ef commit c7a3796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fosslight_util/set_log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def init_check_latest_version(pkg_version="", main_package_name=""):
4848
has_update = lastversion.has_update(repo=main_package_name, at='pip', current_version=pkg_version)
4949
if has_update:
5050
logger.info('### Version Info ###')
51-
logger.warning('Newer version is available : v.{}'.format(str(has_update)))
51+
logger.warning('Newer version is available : v{}'.format(str(has_update)))
5252
logger.warning('You can update it with command (\'pip install ' + main_package_name + ' --upgrade\')')
5353
except TypeError:
5454
logger.warning('Cannot check the lastest version on PIP')
@@ -66,7 +66,7 @@ def init_log_item(main_package_name="", path_to_analyze=""):
6666
if main_package_name != "":
6767
pkg_version = pkg_resources.get_distribution(main_package_name).version
6868
init_check_latest_version(pkg_version, main_package_name)
69-
_result_log["Tool Info"] = main_package_name + " v." + pkg_version
69+
_result_log["Tool Info"] = main_package_name + " v" + pkg_version
7070
if path_to_analyze != "":
7171
_result_log["Path to analyze"] = path_to_analyze
7272

0 commit comments

Comments
 (0)