On Sat 13 Dec 2008 at 01:45PM, Tom Mueller wrote: > Shawn Walker wrote: > > > > One concern I have is what happens if pkg(1) enables/disables an > > authority while the packagemanager is running. > > > > What happens then? > The same thing that happens if you run "pkg unset-authority" while > packagemanager is running. The packages are removed from the catalog > cache on disk. However, since packagemanager already has that > information cached, it will still be able to install packages, etc. from > the authority that was disabled. > > If an authority is enabled while packagemanager is running, it's the > same as if you run "pkg set-authority" to create a new one while it is > running. Packagemanager won't know about it and you won't be able to > install any packages from that authority until you restart packagemanager.
I think we need, to fix all of these sorts of issues, a generation number on various bits of the pkg metadata. This will allow long-running processes like pkg manager (actually it will let the API do the work) to detect when the on-disk stuff has changed, and its world needs updating. That may be out of scope here, but we should do it. -dp -- Daniel Price - Solaris Kernel Engineering - d...@eng.sun.com - blogs.sun.com/dp _______________________________________________ pkg-discuss mailing list pkg-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/pkg-discuss