From caab2375952e36a47588c4da32742d96873b0d5b Mon Sep 17 00:00:00 2001 From: clime Date: Jun 13 2018 07:39:00 +0000 Subject: Revert "[cli] keeping 'copr mock-config' functionality" This reverts commit f12e62af234137c59862439872ad15a77283d873. Was discussed at: - https://pagure.io/copr/copr/pull-request/179 - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/BTEDOVOWB4ARAY3Q3C4VVMFWTAMBUFON/ - https://pagure.io/copr/copr/issue/223 The mailing list thread outlines that the mock config generator should be only kept in copr-rpmbuild. That's why this deprecation happened. --- diff --git a/cli/copr_cli/main.py b/cli/copr_cli/main.py index 38e4d69..89bf6a4 100644 --- a/cli/copr_cli/main.py +++ b/cli/copr_cli/main.py @@ -387,6 +387,7 @@ class Commands(object): :param args: argparse arguments provided by the user """ + sys.stderr.write("# This command is deprecated and will be removed in a future release.\n") username = self.client.username project = args.project.split("/") if len(project) != 2: @@ -708,7 +709,7 @@ def setup_parser(): parser_mock_config = subparsers.add_parser( "mock-config", - help="Get the mock profile (similar to koji mock-config)" + help="Deprecated. Get the mock profile (similar to koji mock-config)" ) parser_mock_config.add_argument( "project", diff --git a/cli/man/copr-cli.1.asciidoc b/cli/man/copr-cli.1.asciidoc index a21b975..8a55dde 100644 --- a/cli/man/copr-cli.1.asciidoc +++ b/cli/man/copr-cli.1.asciidoc @@ -85,7 +85,7 @@ build-package:: Build package from its source definition mock-config:: -Get the mock profile (similar to koji mock-config) +DEPRECATED. Get the mock profile (similar to koji mock-config) build-module:: Build module via Copr MB