Skip to content

Commit

Permalink
rpmbuild: drop copr-builder help message
Browse files Browse the repository at this point in the history
we have this help message as motd on builders
  • Loading branch information
nikromen committed Feb 22, 2024
1 parent 874cb1b commit 126895d
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions rpmbuild/bin/copr-builder
Original file line number Diff line number Diff line change
Expand Up @@ -18,46 +18,6 @@ from copr_common.helpers import (
from copr_rpmbuild.helpers import read_config


def cmd_help():
"""
Print full instructions for working with the builder instance.
Ideally we would have this in MOTD but that would cause problems in cases
like `if $(ssh stroj cat foo|head -n1) == "foo"`. So instead, we instruct
users to run `copr-builder help` manually.
"""
print(
"You have been entrusted with root access to a Copr builder.\n"
"Please be responsible.\n"
"\n"
"This is a private computer system, unauthorized access is strictly\n"
"prohibited. It is to be used only for Copr-related purposes,\n"
"not as your personal computing system.\n"
"\n"
"Please be aware that the legal restrictions for what you can build\n"
"in Copr apply here as well.\n"
"https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr\n"
"\n"
"You can display more information about the builder using\n"
"`copr-builder show`\n"
"\n"
"What to do next?\n"
"\n"
"By default, the builder will be destroyed after 30 minutes. Extend\n"
"this period with `copr-builder prolong`.\n"
"\n"
"The selected (in Copr web UI) build was automatically resubmitted,\n"
"you can find the process with `ps ax |grep copr-rpmbuild`.\n"
"The results are produced in `/var/lib/copr-rpmbuild/`. See the\n"
"information at the beginning of the builder-live.log on how to\n"
"reproduce the build manually.\n"
"\n"
"Once you are finished and don't need the builder anymore,\n"
"please return it using `copr-builder release`.\n"
"\n"
"Happy debugging."
)


class CMDShow:
"""
Show information about the current builder
Expand Down Expand Up @@ -175,14 +135,6 @@ def get_parser():
)
subparsers = parser.add_subparsers(title="actions")

# Help parser

parser_help = subparsers.add_parser(
"help",
help="All users should read this",
)
parser_help.set_defaults(command="help")

# Show parser

parser_show = subparsers.add_parser(
Expand Down Expand Up @@ -228,9 +180,6 @@ def main():
if "command" not in args:
parser.print_help()

elif args.command == "help":
cmd_help()

elif args.command == "show":
cmd = CMDShow(config)
cmd.run()
Expand Down

0 comments on commit 126895d

Please sign in to comment.