Commit caab237 Revert "[cli] keeping 'copr mock-config' functionality"

2 files Authored and Committed by clime 2 months ago
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.

    
 1 @@ -387,6 +387,7 @@
 2           :param args: argparse arguments provided by the user
 3   
 4           """
 5 +         sys.stderr.write("# This command is deprecated and will be removed in a future release.\n")
 6           username = self.client.username
 7           project = args.project.split("/")
 8           if len(project) != 2:
 9 @@ -708,7 +709,7 @@
10   
11       parser_mock_config = subparsers.add_parser(
12           "mock-config",
13 -         help="Get the mock profile (similar to koji mock-config)"
14 +         help="Deprecated. Get the mock profile (similar to koji mock-config)"
15       )
16       parser_mock_config.add_argument(
17           "project",
1 @@ -85,7 +85,7 @@
2   Build package from its source definition
3   
4   mock-config::
5 - Get the mock profile (similar to koji mock-config)
6 + DEPRECATED. Get the mock profile (similar to koji mock-config)
7   
8   build-module::
9   Build module via Copr MB