From: Mark Hymers Date: Sun, 8 Nov 2009 11:57:01 +0000 (+0000) Subject: don't be too lax with our LIKE match X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50a2f9e617ac1efc257d5f27ad58b6c68be9b5b1;p=dak don't be too lax with our LIKE match Signed-off-by: Mark Hymers --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 84d5b1c2..e1b24250 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -1152,7 +1152,7 @@ def get_poolfile_like_name(filename, session=None): """ # TODO: There must be a way of properly using bind parameters with %FOO% - q = session.query(PoolFile).filter(PoolFile.filename.like('%%%s%%' % filename)) + q = session.query(PoolFile).filter(PoolFile.filename.like('%%/%s' % filename)) return q.all()