Print VCS version if available in LDF Graph

This commit is contained in:
Ivan Kravets
2018-03-02 14:31:24 +02:00
parent e95354afeb
commit 2ccb30b0f0

View File

@ -815,7 +815,7 @@ def BuildProjectLibraries(env):
vcs_info = lb.vcs_info
if lb.version:
title += " v%s" % lb.version
if vcs_info:
if vcs_info and vcs_info.get("version"):
title += " #%s" % vcs_info.get("version")
sys.stdout.write("%s|-- %s" % (margin, title))
if int(ARGUMENTS.get("PIOVERBOSE", 0)):