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 <mattia@debian.org>
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.id, s.version, s.suite
FROM results AS r JOIN sources AS s ON r.package_id=s.id
WHERE s.name='{pkg}' AND r.status != ''"""
# AND s.architecture='amd64'"""
FROM results AS r
JOIN sources AS s ON r.package_id=s.id
JOIN distributions AS d on d.id=s.distribution
WHERE d.name = 'debian'
AND s.name='{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