From a6a47c1d390ac9399578d092c766b70f0a46bc60 Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Jan 05 2024 10:00:49 +0000 Subject: new_typed_build: do not reject draft --- diff --git a/kojihub/kojihub.py b/kojihub/kojihub.py index 6c79ff2..4fa1a19 100644 --- a/kojihub/kojihub.py +++ b/kojihub/kojihub.py @@ -7656,10 +7656,6 @@ def new_image_build(build_info): def new_typed_build(build_info, btype): """Mark build as a given btype""" - # add here in case disabling draft build for non-rpm is missing before calling this - # TODO: remove it once draft build is expended to all types - if btype != 'rpm': - reject_draft(build_info) btype_id = lookup_name('btype', btype, strict=True)['id'] query = QueryProcessor(tables=['build_types'], columns=['build_id'], clauses=['build_id = %(build_id)i', 'btype_id = %(btype_id)i'],