Don't publish uninformative rpm.sign messages.

This commit is contained in:
Ralph Bean 2015-01-30 20:46:26 +00:00
parent 2f28a21e0a
commit 088a0d9e5f

View file

@ -148,6 +148,12 @@ def send_message(cbtype, *args, **kws):
# and the secondary hubs off for s390 and ppc.
body['instance'] = 'primary'
# Don't publish these uninformative rpm.sign messages if there's no actual
# sigkey present. Koji apparently adds a dummy sig value when rpms are
# first imported and there's no need to spam the world about that.
if topic == 'rpm.sign' and body.get('info', {}).get('sigkey') == '':
return
# Last thing to do before publishing: scrub some problematic fields
# These fields are floating points which get json-encoded differently on
# rhel and fedora.