diff --git a/CHANGELOG.md b/CHANGELOG.md index d717b1c..e30cb36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased +### Changed +* change verbosity level 0 to return component name on service products-contain-component ## [0.5.5] - 2024-02-02 ### Changed diff --git a/griffon/commands/queries.py b/griffon/commands/queries.py index 7b4a72d..e075d7d 100644 --- a/griffon/commands/queries.py +++ b/griffon/commands/queries.py @@ -232,7 +232,7 @@ def retrieve_component_summary(ctx, component_name, strict_name_search): "search_latest", is_flag=True, default=False, - help=f"Search latest root Components.", + help="Search latest root Components.", ) @click.option( "--search-provides", @@ -240,7 +240,7 @@ def retrieve_component_summary(ctx, component_name, strict_name_search): is_flag=True, default=False, help=( - f"Search dependencies returning their latest root (RPM:src,OCI:noarch) Components " + "Search dependencies returning their latest root (RPM:src,OCI:noarch) Components " f"{Style.BOLD}(enabled by default){Style.RESET}." ), ) @@ -249,19 +249,19 @@ def retrieve_component_summary(ctx, component_name, strict_name_search): "search_upstreams", is_flag=True, default=False, - help=(f"Search root (RPM:src,OCI:noarch) Components by upstreams children "), + help="Search root (RPM:src,OCI:noarch) Components by upstreams children ", ) @click.option( "--search-related-url", "search_related_url", is_flag=True, default=False, - help=f"Search by related url.", + help="Search by related url.", ) @click.option( "--filter-rh-naming/--no-filter-rh-naming", default=get_config_option("default", "filter_rh_naming", True), - help=f"rh-filter-naming is {Style.BOLD}enabled by default{Style.RESET}. Use --no-filter-rh-naming to disable.", + help="rh-filter-naming is enabled by default, to disable use --no-filter-rh-naming.", ) @click.option( "--search-all", diff --git a/griffon/output.py b/griffon/output.py index 93c984c..288f72c 100644 --- a/griffon/output.py +++ b/griffon/output.py @@ -491,7 +491,7 @@ def text_output_products_contain_component( result_tree[pv][ps][cn][nvr]["namespace"], result_tree[pv][ps][cn][nvr]["build_type"], ) - dep_name = nvr + dep_name = result_tree[pv][ps][cn][nvr]["name"] # highlight search term try: dep_name = highlight_search_term(search_component_name, dep_name)