| |
@@ -632,7 +632,7 @@
|
| |
@classmethod
|
| |
def create_chroot(cls, user, copr, mock_chroot, buildroot_pkgs=None, repos=None, comps=None, comps_name=None,
|
| |
with_opts="", without_opts="",
|
| |
- delete_after=None, delete_notify=None):
|
| |
+ delete_after=None, delete_notify=None, module_toggle=""):
|
| |
"""
|
| |
:type user: models.User
|
| |
:type mock_chroot: models.MockChroot
|
| |
@@ -647,12 +647,12 @@
|
| |
|
| |
chroot = models.CoprChroot(copr=copr, mock_chroot=mock_chroot)
|
| |
cls._update_chroot(buildroot_pkgs, repos, comps, comps_name, chroot,
|
| |
- with_opts, without_opts, delete_after, delete_notify)
|
| |
+ with_opts, without_opts, delete_after, delete_notify, module_toggle)
|
| |
return chroot
|
| |
|
| |
@classmethod
|
| |
def update_chroot(cls, user, copr_chroot, buildroot_pkgs=None, repos=None, comps=None, comps_name=None,
|
| |
- with_opts="", without_opts="", delete_after=None, delete_notify=None):
|
| |
+ with_opts="", without_opts="", delete_after=None, delete_notify=None, module_toggle=""):
|
| |
"""
|
| |
:type user: models.User
|
| |
:type copr_chroot: models.CoprChroot
|
| |
@@ -662,12 +662,12 @@
|
| |
"Only owners and admins may update their projects.")
|
| |
|
| |
cls._update_chroot(buildroot_pkgs, repos, comps, comps_name,
|
| |
- copr_chroot, with_opts, without_opts, delete_after, delete_notify)
|
| |
+ copr_chroot, with_opts, without_opts, delete_after, delete_notify, module_toggle)
|
| |
return copr_chroot
|
| |
|
| |
@classmethod
|
| |
def _update_chroot(cls, buildroot_pkgs, repos, comps, comps_name,
|
| |
- copr_chroot, with_opts, without_opts, delete_after, delete_notify):
|
| |
+ copr_chroot, with_opts, without_opts, delete_after, delete_notify, module_toggle):
|
| |
if buildroot_pkgs is not None:
|
| |
copr_chroot.buildroot_pkgs = buildroot_pkgs
|
| |
|
| |
@@ -691,6 +691,9 @@
|
| |
if delete_notify is not None:
|
| |
copr_chroot.delete_notify = delete_notify
|
| |
|
| |
+ if module_toggle is not None:
|
| |
+ copr_chroot.module_toggle = module_toggle
|
| |
+
|
| |
db.session.add(copr_chroot)
|
| |
|
| |
@classmethod
|
| |
good for now, thanks. In future we'll fix this to return list of pairs ('enable/disable', 'module')