This is an automated email from the git hooks/post-receive script.
clime pushed a commit to branch fix_copr_mock-config
in repository copr/copr.
commit 87bfd5ea3c3136652e3c62823e657ce843a0197f
Author: clime <clime(a)redhat.com>
AuthorDate: Tue Oct 23 22:37:46 2018 +0200
[cli] fix copr mock-config
---
cli/copr_cli/main.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/cli/copr_cli/main.py b/cli/copr_cli/main.py
index 8127f06..7dfbcad 100644
--- a/cli/copr_cli/main.py
+++ b/cli/copr_cli/main.py
@@ -406,8 +406,14 @@ class Commands(object):
"""
sys.stderr.write("# This command is deprecated and will be removed in a
future release.\n")
ownername, projectname = self.parse_name(args.project)
- build_config = self.client.project_chroot_proxy.get_build_config(ownername,
projectname, args.chroot)
- print(MockProfile(build_config))
+ client = CoprClient.create_from_file_config()
+ result = client.get_build_config('{0}/{1}'.format(ownername,
projectname), args.chroot)
+
+ if result.output != "ok":
+ sys.stderr.write(result.error + "\n")
+ sys.stderr.write("Un-expected data returned, please report this
issue\n")
+
+ print(MockProfile(result.build_config))
@check_username_presence
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.