| |
@@ -423,14 +423,9 @@
|
| |
"""
|
| |
sys.stderr.write("# This command is deprecated and will be removed in a future release.\n")
|
| |
ownername, projectname = self.parse_name(args.project)
|
| |
- 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))
|
| |
+ build_config = self.client.project_chroot_proxy.get_build_config(ownername, projectname, args.chroot)
|
| |
+ build_config.rootdir = "{}-{}_{}".format(ownername.replace("@", "group_"), projectname, args.chroot)
|
| |
+ print(MockProfile(build_config))
|
| |
|
| |
|
| |
@check_username_presence
|
| |
These changes were picked out from PR#450
This PR switches
copr-cli mock-config
back to APIv3 (after PR#452) and fixes #427.