Skip to content

Commit

Permalink
frontend, python, cli: hopefully more understandable description
Browse files Browse the repository at this point in the history
See PR#1097
  • Loading branch information
FrostyX authored and nikromen committed Dec 19, 2022
1 parent ee90e40 commit d17a478
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
14 changes: 8 additions & 6 deletions cli/copr_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,9 +1111,10 @@ def setup_parser():

parser_create.add_argument("--delete-after-days", default=None, metavar='DAYS',
help="Delete the project after the specfied period of time")
parser_create.add_argument("--module-hotfixes", choices=["on", "off"], default="off",
help=("make packages from this project available "
"on along with packages from the active module streams."))
parser_create.add_argument(
"--module-hotfixes", choices=["on", "off"], default="off",
help=("Allow packages from this project to override packages from "
"active module streams."))
parser_create.add_argument(
"--multilib", choices=["on", "off"], default="off",
help=("When users enable this copr repository on 64bit variant of "
Expand Down Expand Up @@ -1169,9 +1170,10 @@ def setup_parser():
help=("Delete the project after the specfied "
"period of time, empty or -1 disables, "
"(default is \"don't change\")"))
parser_modify.add_argument("--module-hotfixes", choices=["on", "off"],
help=("make packages from this project available "
"on along with packages from the active module streams."))
parser_modify.add_argument(
"--module-hotfixes", choices=["on", "off"],
help=("Allow packages from this project to override packages from "
"active module streams."))
parser_modify.add_argument(
"--multilib", choices=["on", "off"],
help=("When users enable this copr repository on 64bit variant of "
Expand Down
5 changes: 2 additions & 3 deletions frontend/coprs_frontend/coprs/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,8 @@ class CoprForm(BaseForm):

module_hotfixes = wtforms.BooleanField(
"This repository contains module hotfixes",
description="""This will make packages from this project
available on along with packages from the active module
streams.""",
description="""This will allow packages from this project to
override packages from active module streams.""",
default=False, false_values=FALSE_VALUES)

fedora_review = wtforms.BooleanField(
Expand Down
8 changes: 4 additions & 4 deletions python/copr/v3/proxies/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def add(self, ownername, projectname, chroots, description=None, instructions=No
argument and/or the 'bootstrap_image'.
:param bool devel_mode: if createrepo should run automatically
:param int delete_after_days: delete the project after the specfied period of time
:param bool module_hotfixes: make packages from this project available
on along with packages from the active module streams.
:param bool module_hotfixes: allow packages from this project to
override packages from active module streams.
:param str bootstrap: Mock bootstrap feature setup.
Possible values are 'default', 'on', 'off', 'image'.
:param str bootstrap_image: Name of the container image to initialize
Expand Down Expand Up @@ -174,8 +174,8 @@ def edit(self, ownername, projectname, chroots=None, description=None, instructi
argument and/or the 'bootstrap_image'.
:param bool devel_mode: if createrepo should run automatically
:param int delete_after_days: delete the project after the specfied period of time
:param bool module_hotfixes: make packages from this project available
on along with packages from the active module streams.
:param bool module_hotfixes: allow packages from this project to
override packages from active module streams.
:param str bootstrap: Mock bootstrap feature setup.
Possible values are 'default', 'on', 'off', 'image'.
:param str isolation: Mock isolation feature setup.
Expand Down

0 comments on commit d17a478

Please sign in to comment.