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:
parent
2f76700926
commit
4b8211a471
@ -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("%s: %s" % (k.title(), textwrap.fill(proj[k], subsequent_indent=" " * (len(k)+2))))
|
||||||
print("Builds: ")
|
print("Builds: ")
|
||||||
for build in proj["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["source"]["version"],
|
||||||
build["release"],
|
build["release"],
|
||||||
build["arch"],
|
build["arch"],
|
||||||
|
Loading…
Reference in New Issue
Block a user