From 126895de1fe1d723806258085a7650e95ed2b7df Mon Sep 17 00:00:00 2001 From: Jiri Kyjovsky Date: Thu, 22 Feb 2024 14:33:33 +0100 Subject: [PATCH] rpmbuild: drop copr-builder help message we have this help message as motd on builders --- rpmbuild/bin/copr-builder | 51 --------------------------------------- 1 file changed, 51 deletions(-) diff --git a/rpmbuild/bin/copr-builder b/rpmbuild/bin/copr-builder index 2f146185c..b0c540ef1 100755 --- a/rpmbuild/bin/copr-builder +++ b/rpmbuild/bin/copr-builder @@ -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 @@ -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( @@ -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()