Skip to content
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

cli, frontend: rely on DNF with documenting repo priority #2831

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cli/copr_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,10 @@ def setup_parser():
"created for you (as soon as they are available) as rawhide "
"chroot forks."))

parser_create.add_argument("--repo-priority", default=None,
help="Set the priority value of this repository")
parser_create.add_argument(
"--repo-priority", default=None,
help=("Use the priority=<INT> config option for repositories in this "
"project, see man dnf.conf(5) for more info."))

create_and_modify_common_opts(parser_create)

Expand Down
6 changes: 2 additions & 4 deletions frontend/coprs_frontend/coprs/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,10 +656,8 @@ class CoprForm(BaseForm):
validators=[wtforms.validators.Optional()],)

repo_priority = wtforms.IntegerField(
"The priority value of this repository",
description="""The priority value of this repository, default is 99. If there is more than one candidate
package for a particular operation, the one from a repo with the lowest priority value is
picked, possibly despite being less convenient otherwise (e.g. by being a lower version).""",
"Use the priority=<INT> config option for repositories in this "
"project, see man dnf.conf(5) for more info.",
render_kw={"placeholder": "Optional - integer, e.g. 22"},
validators=[
wtforms.validators.Optional(),
Expand Down