From 4c82a632820a5a85297914870d9fbb1fe54f40a2 Mon Sep 17 00:00:00 2001 From: Merlin Mathesius Date: Apr 09 2019 20:55:27 +0000 Subject: Enhance 'module-overview' sub-command to show scratch status of modules. Signed-off-by: Merlin Mathesius --- diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py index 7f2b181..f1ecc6f 100644 --- a/pyrpkg/__init__.py +++ b/pyrpkg/__init__.py @@ -3554,6 +3554,7 @@ class Commands(object): print('Name: {0}'.format(build['name'])) print('Stream: {0}'.format(build['stream'])) print('Version: {0}'.format(build['version'])) + print('Scratch: {0}'.format(build.get('scratch', False))) print('Koji Tag: {0}'.format(build['koji_tag'])) print('Owner: {0}'.format(build['owner'])) print('State: {0}\n'.format(build['state_name'])) diff --git a/tests/test_cli.py b/tests/test_cli.py index ffea852..7274e2c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -2694,6 +2694,7 @@ Components: 'koji_tag': 'module-057fc15e0e44b333', 'name': 'testmodule', 'owner': 'mprahl', + 'scratch': True, 'state_name': 'failed', 'stream': 'master', 'version': '20171011173928' @@ -2739,6 +2740,7 @@ ID: 1100 Name: testmodule Stream: master Version: 20171011093314 +Scratch: False Koji Tag: module-c24f55c24c8fede1 Owner: jkaluza State: ready @@ -2747,6 +2749,7 @@ ID: 1109 Name: testmodule Stream: master Version: 20171011173928 +Scratch: True Koji Tag: module-057fc15e0e44b333 Owner: mprahl State: failed