Commit 0faa4aaf authored by Mattia Rizzolo's avatar Mattia Rizzolo

reproducible debian: notes: only store notes for debian packages

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <>
parent 7edea4d5
......@@ -48,10 +48,14 @@ def load_notes():
except AssertionError:
print_critical_message(pkg + ' does not include a version')
irc_msg('The note for ' + pkg + ' does not include a version.')
# We are only dealing with notes targetting debian, so hardcode it here
# for now. Need to be rethought as a whole when multi-distro notes comes
query = """SELECT, s.version, s.suite
FROM results AS r JOIN sources AS s ON
WHERE'{pkg}' AND r.status != ''"""
# AND s.architecture='amd64'"""
FROM results AS r
JOIN sources AS s ON
JOIN distributions AS d on
WHERE = 'debian'
AND'{pkg}' AND r.status != ''"""
query = query.format(pkg=pkg)
result = query_db(query)
if not result:
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