Hi guys,
Here is the patch, request for comments.
https://github.com/xning/koji/commit/4b5eeef34666f56097bbf099cd7d553b3ecce9b7
In the following cases, the listPackages method just do a simple
query
1. no tagID, userID, and packageID.
2. inherited is not true or tagID is none.
In the 2nd case, the listPackages calls readPackageList method. When the 'with_dups' is true,
readPackageList will do following logic
##############code begin#######################
##############code end##########################
As follow SQL statment shows, we can let the postgres to do the above logic,
but we need return a json string or the pgdb will return a bit
string.
From the json string, we can easily get a dict, hence the _multiRow method no need
to construct a dict by list comprehension. But seems we need change readPackageList.
##############code begin#######################
##############code end##########################
Thanks a lot,
xning