Commit 4006d3b9 authored by Seblu's avatar Seblu

Improve changelog output

parent 098e861e
......@@ -159,8 +159,14 @@ def c_changelog(args):
Display changelog of packaged images
'''
repoman = load_repositories(args)
for image, repo in get_images(args.pattern, repoman, min=1):
image.changelog.show(image.version, args.all_version)
images = list(get_images(args.pattern, repoman, min=1))
for image, repo in images:
if len(images) > 1:
out("--- #yellow#image: %s v%s#reset#" % (image.name, image.version))
if args.all_version:
image.changelog.show_all()
else:
image.changelog.show(image.version)
def c_check(args):
'''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment