Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
def create_depends_string (suite, depends_tree):
result = ""
if suite == 'experimental':
- suite_where = " in ('experimental','unstable')"
+ suite_where = "in ('experimental','unstable')"
else:
- suite_where = "'%s'" % suite
+ suite_where = "= '%s'" % suite
comma_count = 1
session = DBConn().session()
AND l.component = c.id
AND ba.bin=b.id
AND ba.suite = su.id
- AND su.suite_name=%(suitename)s
+ AND su.suite_name %(suitename)s
ORDER BY b.version DESC"""
return session.execute(sql % {'package': package, 'suitename': suitename})