From 514c950f31ab0b5a585deea481d895fe4fba279e Mon Sep 17 00:00:00 2001 From: Yuming Zhu Date: May 03 2018 00:27:30 +0000 Subject: readTaggedRPMS: passing table 'tag_listing' in eventCondition fixes: #910 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 6c30357..3f281d1 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -1283,7 +1283,7 @@ def readTaggedRPMS(tag, package=None, arch=None, event=None, inherit=False, late ] tables = ['rpminfo'] joins = ['tag_listing ON rpminfo.build_id = tag_listing.build_id'] - clauses = [eventCondition(event), 'tag_id=%(tagid)s'] + clauses = [eventCondition(event, 'tag_listing'), 'tag_id=%(tagid)s'] data = {} #tagid added later if package: joins.append('build ON rpminfo.build_id = build.id')