From 22ab733435badd705dcfdb431332a6fe624484ce Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 23 Oct 2023 10:35:45 +0200 Subject: [PATCH] backend: don't sign srpm-builds This content is not meant to be consumed by users, and it consumes the keygen cycles. Relates: #2757 --- backend/copr_backend/sign.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/copr_backend/sign.py b/backend/copr_backend/sign.py index 6655fb98a..41bc435ed 100644 --- a/backend/copr_backend/sign.py +++ b/backend/copr_backend/sign.py @@ -153,6 +153,11 @@ def sign_rpms_in_dir(username, projectname, path, chroot, opts, log): :raises: :py:class:`backend.exceptions.CoprSignError` failed to sign at least one package """ + + if chroot == 'srpm-builds': + log.info("Source builds are not signed") + return + rpm_list = [ os.path.join(path, filename) for filename in os.listdir(path)