[email protected] wrote:
On Tue, Dec 01, 2009 at 04:26:48PM -0600, Shawn Walker wrote:
Greetings,
The following webrev contains changes and fixes for the following
issues and RFEs:
5872 List APIs required
12929 image.py:get_publisher_ranks can traceback after older
client configuration changes
12946 pkg list should provide way to list only newest versions of
all packages
webrev:
http://cr.opensolaris.org/~swalker/pkg-list/
Only a few comments from me. This looks pretty good.
catalog.py:
- line 504: [nit] Is there any chance you could give this a more unique
name? It's rather hard to search/replace for fmris and actions,
given that we have many variables, objects, and comments with that
name. It's hard to find all of the places where fmris() and
actions() are used with such a common name.
It's too late for a name change really. This is actually the same name
the old catalog.py used as well. I'd have to change this in a lot of
places...
- lines 584/585: Would it be easier to put this check in load(), or
are you trying to save a function call?
Saving the function call. See the comment on lines 582-583.
It made a measurable difference.
api.py:
- Do get_pkg_categories and get_pkg_list need to use the activity
lock? IIUC, it's possible for these functions to download manifests
and we don't want two threads modifying the image at the same time,
correct?
It's possible that they could indirectly trigger a manifest retrieval,
but I didn't think it strictly necessary to have an activity lock for
them otherwise.
I'm willing to put one in if you're concerned about transport.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss