| |
@@ -651,7 +651,6 @@
|
| |
|
| |
:param args: argparse arguments provided by the user
|
| |
"""
|
| |
-
|
| |
if args.bootstrap_image:
|
| |
args.bootstrap = 'image'
|
| |
owner, copr, chroot = self.parse_chroot_path(args.coprchroot)
|
| |
@@ -659,7 +658,9 @@
|
| |
ownername=owner, projectname=copr, chrootname=chroot,
|
| |
comps=args.upload_comps, delete_comps=args.delete_comps,
|
| |
additional_packages=args.packages, additional_repos=args.repos,
|
| |
- bootstrap=args.bootstrap, bootstrap_image=args.bootstrap_image,
|
| |
+ additional_modules=args.modules, with_opts=' '.join(args.rpmbuild_with),
|
| |
+ without_opts=' '.join(args.rpmbuild_without), bootstrap=args.bootstrap,
|
| |
+ bootstrap_image=args.bootstrap_image,
|
| |
isolation=args.isolation,
|
| |
)
|
| |
print("Edit chroot operation was successful.")
|
| |
@@ -674,9 +675,9 @@
|
| |
project_chroot = self.client.project_chroot_proxy.get(
|
| |
ownername=owner, projectname=copr, chrootname=chroot
|
| |
)
|
| |
- fields = ["additional_packages", "additional_repos", "comps_name", "delete_after_days",
|
| |
- "isolation", "mock_chroot", "ownername", "projectname", "with_opts",
|
| |
- "without_opts"]
|
| |
+ fields = ["additional_packages", "additional_repos", "additional_modules",
|
| |
+ "comps_name", "delete_after_days", "isolation", "mock_chroot",
|
| |
+ "ownername", "projectname", "with_opts", "without_opts"]
|
| |
printer = get_printer(args.output_format, fields)
|
| |
printer.add_data(project_chroot)
|
| |
printer.finish()
|
| |
@@ -1404,6 +1405,12 @@
|
| |
help="space separated string of package names to be added to buildroot")
|
| |
parser_edit_chroot.add_argument("--repos",
|
| |
help="space separated string of additional repo urls for chroot")
|
| |
+ parser_edit_chroot.add_argument("--modules",
|
| |
+ help="comma separated list of modules that will be enabled or disabled in the given chroot, e.g. 'module1:stream,!module2:stream'")
|
| |
+ parser_edit_chroot.add_argument("--rpmbuild-with", action='append', default=[],
|
| |
+ help="rpmbuild --with option, can be set multiple times")
|
| |
+ parser_edit_chroot.add_argument("--rpmbuild-without", action='append', default=[],
|
| |
+ help="rpmbuild --without options, can be set multiple times")
|
| |
parser_edit_chroot.add_argument("--isolation", choices=["simple", "nspawn", "default"], default="unchanged",
|
| |
help="Choose the isolation method for running commands in buildroot.")
|
| |
|
| |
Resolves: https://pagure.io/copr/copr/issue/2065