| |
@@ -138,23 +138,13 @@
|
| |
"project_owner": task.build.copr.owner_name,
|
| |
"project_name": task.build.copr.name,
|
| |
"submitter": task.build.user.name if task.build.user else None, # there is no user for webhook builds
|
| |
- "chroot": task.mock_chroot.name,
|
| |
|
| |
- "repos": task.build.repos,
|
| |
"memory_reqs": task.build.memory_reqs,
|
| |
"timeout": task.build.timeout,
|
| |
"enable_net": task.build.enable_net,
|
| |
"git_repo": task.build.package.dist_git_repo,
|
| |
"git_hash": task.git_hash,
|
| |
- "source_type": helpers.BuildSourceEnum("scm"),
|
| |
- "source_json": json.dumps(
|
| |
- {'clone_url': task.build.package.dist_git_clone_url, 'committish': task.git_hash}),
|
| |
-
|
| |
- "package_name": task.build.package.name,
|
| |
- "package_version": task.build.pkg_version,
|
| |
- "repos": build_config.get("repos"),
|
| |
- "buildroot_pkgs": build_config.get("additional_packages"),
|
| |
- "use_bootstrap_container": build_config.get("use_bootstrap_container")
|
| |
+ "build_config": build_config,
|
| |
}
|
| |
|
| |
except Exception as err:
|
| |
This is for discussion purposes only.. (not intended to be merged!).
From logical POV, it seems to me that we could cleanup the build dict for copr-rpmbuild
this way, to simplify the code and to keep this in sync with
api/.../build-config/.../
page.If we can do this, I would follow up with more work done, removing a some duplication
of code/interests in
copr mock-config
andcopr-rpmbuild
...Copying the whole
build_config
seems to be clear plus to me, just the consumer needsto be adjusted a bit... though what I'm really worried about is these fields:
At this point the package is imported in dist-git completely, right? Why we need
them then?