From 30ee020125972f0b36024251af8b6ae8b0688c8d Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Mon, 25 Jul 2011 19:41:43 +0200 Subject: [PATCH] more info before displaying content --- bin/is | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/is b/bin/is index 3559975..02ff69f 100755 --- a/bin/is +++ b/bin/is @@ -142,6 +142,7 @@ def c_list(parser, args): # List available repositories if len(args.list_args) == 0: repoman = load_repositories(args) + arrow("Repositories") repoman.show(verbose=args.detail) return # list direct image or reposity content @@ -150,12 +151,14 @@ def c_list(parser, args): if (istools.pathtype(args.list_args[0]) == 'file' and os.path.isfile(args.list_args[0])): pkg = PackageImage(args.list_args[0]) + arrow("Image %s v%s" % (pkg.name, pkg.version)) pkg.show(verbose=args.detail) # list repository content else: args.repo_filter = args.list_args[0] repoman = load_repositories(args) for repo in repoman: + arrow("Image in %s" % repo.config.name) repo.show(args.detail) return # list last image version @@ -174,6 +177,7 @@ def c_list(parser, args): # display content of image accross a repositories repoman = load_repositories(args) pkg = repoman.get(args.image, args.image_version) + arrow("Image %s v%s" % (pkg.name, pkg.version)) pkg.show(verbose=args.detail) def c_cat(parser, args): -- GitLab