Brock Pytlik wrote:
Webrev:
http://cr.opensolaris.org/~bpytlik/ips-7835-v1/
modules/client/imageplan.py:
line 786: this check should be switched around with empty_image first
to avoid the unnecessary check for index existence
line 788: curious, is there a reason client_update_index can't
perform this automatically if needed?
line 818: i'd rather see this named image_is_empty() or
is_image_empty() to reinforce its boolean nature, and because it's a
function as opposed to a property
modules/indexer.py:
lines 604-605: does every place that does a consistent_open need this
exception check? If so, line 127 needs it as well in this file.
modules/server/catalog.py:
lines 223-226: There doesn't seem to be much point to this since you
call ind.check_index_existence() again at line 227, and you're also
assigning to the variable cie which is never used. Did you mean to
change line 227 to be wrapped with the exception handler?
This changeset could also use some tests to verify that the new
behaviour actually happens as intended.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss