From 6ea68825c7270d47c833b0ca7c24673b40c16c04 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Tue, 19 Aug 2025 12:24:42 -0400 Subject: [PATCH] allow sigkey="" --- kojihub/kojihub.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kojihub/kojihub.py b/kojihub/kojihub.py index 9b0222f1..af6e398c 100644 --- a/kojihub/kojihub.py +++ b/kojihub/kojihub.py @@ -8326,6 +8326,9 @@ def add_rpm_sig(an_rpm, sighdr, sigkey=None): def validate_sigkey_value(sigkey): convert_value(sigkey, cast=str, check_only=True) + if sigkey == '': + # special case for the unsigned sig header + return if '/' in sigkey or sigkey.startswith('.'): # not allowed because the value is used in a path raise koji.GenericError("Invalid sigkey value")