From 274f8b4e56a80f09786f72702a87ffd4c4617c01 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 24 Oct 2017 03:58:36 +0200 Subject: [PATCH] Add an option to make pungi-koji print its compose_dir to stdout Signed-off-by: Patrick Uiterwijk --- bin/pungi-koji | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/pungi-koji b/bin/pungi-koji index 78f714fa..a71f8517 100755 --- a/bin/pungi-koji +++ b/bin/pungi-koji @@ -154,6 +154,12 @@ def main(): default=[], help="only create latest symbol link to this compose when compose status matches specified status", ) + parser.add_argument( + "--print-output-dir", + action="store_true", + default=False, + help="print the compose directory" + ) parser.add_argument( "--quiet", action="store_true", @@ -231,6 +237,9 @@ def main(): else: compose_dir = opts.compose_dir + if opts.print_output_dir: + print('Compose dir: %s' % compose_dir) + compose = Compose(conf, topdir=compose_dir, debug=opts.debug_mode,