Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
GRIF-223: change verbosity level 0 to return component name (instead …
Browse files Browse the repository at this point in the history
…of nvr) which matches previous behaviour
  • Loading branch information
JimFuller-RedHat committed Feb 7, 2024
1 parent 8cfafdb commit ae2cbf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions griffon/commands/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,15 @@ 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",
"search_provides",
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}."
),
)
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion griffon/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae2cbf1

Please sign in to comment.