Danek Duvall wrote:
On Mon, Mar 23, 2009 at 01:18:20PM -0500, Shawn Walker wrote:
Right, but for those users that actually remove their old BEs, this would save space and it should also have a minor performance improvement for client operations that walk the pkg dir, right?

What operations are those?  I don't think we ever look at package versions
that aren't installed.  We certainly don't need to.

See image:gen_installed_pkg_names(), image:update_installed_pkgs(). They use os.listdir to walk $META/pkg/* looking for the "installed" file.

Admittedly, that seems to only happen if the /var/pkg/state/installed directory is missing, inaccessible, or needs to be re-generated, but...

--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to