Created attachment 524277 [details]
Fix _quoteparams call for PyGreSQL 4
Version-Release number of selected component (if applicable):
In PyGreSQL 4.0, the _quoteparams method moved into the pgdbCursor class, so this import in koji 1.6.0 is no longer valid:
File "/usr/lib/python2.7/site-packages/koji/db.py", line 29:
from pgdb import _quoteparams
I have only tried this on F16, but I suspect that F15 and rawhide are similarly affected.
The attached patch removes the import and uses pgdb.version to decide how to call _quoteparams
*** Bug 742634 has been marked as a duplicate of this bug. ***
The patch doesn't work for F15:
[Wed Oct 12 08:26:09 2011] [error] [client 127.0.0.1] File "/usr/lib/python2.7/site-packages/koji/db.py", line 92
[Wed Oct 12 08:26:09 2011] [error] [client 127.0.0.1] if float(pgdb.version): < 4:
[Wed Oct 12 08:26:09 2011] [error] [client 127.0.0.1] ^
[Wed Oct 12 08:26:09 2011] [error] [client 127.0.0.1] SyntaxError: invalid syntax
I'm testing a different patch for this now. Basically looks for pgdb._quoteparams() or cursor._quoteparams(), and falls back to a simpler method if neither is available.
Also filed at https://fedorahosted.org/koji/ticket/224
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.