-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement the possibility to waive missing requirements via bodhi-cli #2468
Conversation
bodhi/client/__init__.py
Outdated
click.echo( | ||
'You can not list the unsatisfied requirements and waive them at the same ' | ||
'time, please use either --show or --test=... but not both.') | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other command are using sys.exit(1)
in that case, we could try to stay consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also it seems that ERROR:
is added at the beginning of the message just like here https://github.com/fedora-infra/bodhi/blob/develop/bodhi/client/__init__.py#L576
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll adjust
bodhi/client/__init__.py
Outdated
else: | ||
if not comment: | ||
click.echo('Comment are mandatory when waiving unsatisfied requirements') | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, we could use sys.exit(1)
and add the ERROR:
in front of the message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do :)
This commit basically implements the command: bodhi update waive, see --help for the arguments. It queries greenwave via bodhi to know the list of unsatisfied requirements and uses the waiving endpoint in bodhi's API to waive either all or just some of them. Signed-off-by: Pierre-Yves Chibon <[email protected]>
👍 |
This patch is planned to be included in the upcoming 3.9.0 release: #2477. |
This patch was released with 3.9.0 last week. |
This commit basically implements the command: bodhi update waive, see
--help for the arguments.
It queries greenwave via bodhi to know the list of unsatisfied
requirements and uses the waiving endpoint in bodhi's API to waive either
all or just some of them.
Signed-off-by: Pierre-Yves Chibon [email protected]