def _update_chroot(cls, buildroot_pkgs, repos, comps, comps_name, copr_chroot, with_opts, without_opts, delete_after, delete_notify): if buildroot_pkgs is not None: copr_chroot.buildroot_pkgs = buildroot_pkgs if repos is not None: copr_chroot.repos = repos.replace("\n", " ") if with_opts is not None: copr_chroot.with_opts = with_opts if without_opts is not None: copr_chroot.without_opts = without_opts if comps_name is not None: copr_chroot.update_comps(comps) copr_chroot.comps_name = comps_name ActionsLogic.send_update_comps(copr_chroot) if delete_after is not None: copr_chroot.delete_after = delete_after if delete_notify is not None: copr_chroot.delete_notify = delete_notify db.session.add(copr_chroot)
def remove_comps(cls, user, copr_chroot): UsersLogic.raise_if_cant_update_copr( user, copr_chroot.copr, "Only owners and admins may update their projects.") copr_chroot.comps_name = None copr_chroot.comps_zlib = None ActionsLogic.send_update_comps(copr_chroot) db.session.add(copr_chroot)
def _update_chroot(cls, buildroot_pkgs, comps, comps_name, module_md, module_md_name, copr_chroot): copr_chroot.buildroot_pkgs = buildroot_pkgs if comps_name is not None: copr_chroot.update_comps(comps) copr_chroot.comps_name = comps_name ActionsLogic.send_update_comps(copr_chroot) if module_md_name is not None: copr_chroot.update_module_md(module_md) copr_chroot.module_md_name = module_md_name ActionsLogic.send_update_module_md(copr_chroot)
def _update_chroot(cls, buildroot_pkgs, comps, comps_name, copr_chroot): copr_chroot.buildroot_pkgs = buildroot_pkgs if comps_name is not None: copr_chroot.update_comps(comps) copr_chroot.comps_name = comps_name ActionsLogic.send_update_comps(copr_chroot)