This patch adds support for querying sets with gentoolkit (e.g equery l @system) It currently only works with portage-2.2 (as the set-API is marked as private in portage-2.1 IIRC) and does not contain any documentation updates. I'd work on this as well as on anything else that might also be required if it is deemed useful enough for inclusion into gentoolkit.
Created attachment 222219 [details, diff] Patch for set support, against svn r749
Thanks, Andy! I had planned on doing this (see bug #300931) but this looks great; exactly what I had in mind. I'll take a little more time to review the patch, but I'll probably apply later today (it'll be at genscripts.googlecode.com which is serving as somewhat of a test bed for gentoolkit's svn, but it should make its way into svn HEAD soon).
$ svn ci -m "Adding equery list @set patch from Andy Kittner; bug #307945." Sending gentoolkit/pym/gentoolkit/errors.py Sending gentoolkit/pym/gentoolkit/helpers.py Transmitting file data .. Committed revision 248.
This bug has been fixed in app-portage/gentoolkit-0.3.0_rc10, thanks for reporting this issue.