From 4006d3b98aa87a132fab8555903b3dab90d7a12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Wed, 12 Jun 2013 12:33:57 +0200 Subject: [PATCH] Improve changelog output --- bin/is | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/is b/bin/is index 22a6ada..e43f496 100755 --- a/bin/is +++ b/bin/is @@ -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): ''' -- GitLab