Catch exceptions from python conversions in dbMatch()
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 13 Mar 2009 06:55:53 +0000 (08:55 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 3 Apr 2009 11:03:44 +0000 (14:03 +0300)
commit86d720bbb9d97e19bc60ed583e2ebc696952c1e0
treeffc647bd3845be7af293e0925439bb9060e3edb1
parent6af8fc41f8479917f7846a93b512f4d99d8c05f1
Catch exceptions from python conversions in dbMatch()
- Prior to this, string conversion (eg on unicode object) could fall
  through to rpmtsInitIterator() with key of NULL, matching everything
  and only much later spitting out an obscure traceback. PyInt_FromLong()
  can fail too, causing us to look for bogons.
(cherry picked from commit 9317ebc83f611075874713a1099b1f5aa14c969c)
python/rpmts-py.c