[email protected] wrote:
On Thu, Apr 02, 2009 at 06:15:02PM -0400, Dave Miner wrote:
Shawn Walker wrote:
Dave Miner wrote:
I think I would direct the effort towards filing bugs to get Package
Manager to be aware of its environment and behave appropriately. We
do have legitimate cases of installing packages in the live CD
environment, and would certainly like users to be able to at least
search and browse the package repositories from that environment in
order to be able to ascertain that OpenSolaris has the software they
want and get to know the Package Manager a bit.
These problems will apply to the cli client as well as the gui.
I can easily see adding an option to disable local search indexing to
help here.
"pkg install" and uninstall already have --no-index. We need to
instruct people to use it when installing things on the CD environment,
of course.
Perhaps I'm out of the loop already, but I thought we discussed a
solution to this problem at yesterday's pkg iteam meeting.
The consensus that I thought we reached was that local search indices
won't be built by default. When the user performs a local search, we'll
print a message stating that local search performance is degraded. If
better performance is desired, the user can create a local search index
by invoking the proper command. Once local indices exist, pkg(5) will
continue to update them.
In this case, users wouldn't need the --no-index option, since the
default behavior doesn't create a local index. The only catch is that
the folks who create the install CD must make sure that no local index
is present on the disc, otherwise pkg will try to rebuild it.
This is the new (as of yesterday), hoped for behavior. I'm still working
on getting that implemented (and hitting some interesting behavior along
the way). One modification I made to the proposal was that if an image
is empty and is being installed into for the first time (think a newly
created user image), then we do build the index. So, the behavior I'm
currently looking at implementing is:
1) If the index exists, update it.
2) If the index doesn't exist and no packages are present in the image,
set up the empty index then update it. (This is fast)
3) If the index doesn't exist but the image has packages, don't index.
This indexing behavior will also be present in PackageManager.
I think this addresses the issues for installing and searching for
PackageManager and the cli. Please let me know if I've overlooked something.
Brock
-j
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss