composer-cli: Fix non-zero epoch in projets info

The json value is an int, so convert it to a str.

(cherry picked from commit 18521cec1a)
This commit is contained in:
Brian C. Lane 2018-07-19 14:04:59 -07:00
parent 0060729c3d
commit 4eae24de40
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def projects_info(socket_path, api_version, args, show_json=False):
print("%s: %s" % (k.title(), textwrap.fill(proj[k], subsequent_indent=" " * (len(k)+2))))
print("Builds: ")
for build in proj["builds"]:
print(" %s%s-%s.%s at %s for %s" % ("" if not build["epoch"] else build["epoch"] + ":",
print(" %s%s-%s.%s at %s for %s" % ("" if not build["epoch"] else str(build["epoch"]) + ":",
build["source"]["version"],
build["release"],
build["arch"],