Commit 8229ccaf authored by Mustafa Gezen's avatar Mustafa Gezen 🏗
Browse files

Don't sign already signed RPMs

parent f2c9afaf
......@@ -55,6 +55,11 @@ async def atomic_sign_unsigned_builds():
build_rpms = koji_session.listBuildRPMs(build_task["build_id"])
for rpm in build_rpms:
rpm_sigs = koji_session.queryRPMSigs(rpm["id"])
for rpm_sig in rpm_sigs:
if rpm_sig["sigkey"] == settings.sigul_key_id:
nvr_arch = "%s.%s" % (rpm["nvr"], rpm["arch"])
await sign_koji_package(nvr_arch)
koji_session.writeSignedRPM(nvr_arch, settings.sigul_key_id)
......@@ -82,7 +87,7 @@ async def atomic_check_build_status():
elif task_info["state"] == koji.TASK_STATES["FAILED"]:
task_result = koji_session.getTaskResult(build.koji_id)
except (koji.BuildError, xmlrpc.client.Fault):
build.status = BuildStatus.FAILED
except koji.GenericError:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment