[email protected] wrote:
I have an idea, but I'm not sure if it meets all of the requirements for
this feature.  Is it feasible to change the point in time when the
licenses are displayed?  The code in the gate always requires us to
download a license.  If it were okay to display the license after the
content has been downloaded, but before it is installed, then you could
perform the download in one step.   Afterwards, the client could then
display the license information.

No, that doesn't really work. Display needs to happen before plan execution, and downloads happen during plan execution (preexecute, specifically).

Not only that, the client itself needs to be the one to perform the display, and it can't do that once plan execution has started.

This doesn't get you out of having to deal with compressed license
files, but it does mean that the download doesn't have to happen in two
phases.  If the user opts not to accept the license, we can still skip
installing the packages.

Is this a workable idea?

The only viable options, as far as I can see, are to either do what I'm doing now (retrieve all license data during evaluate) or retrieve the license text on-demand using get_datastream while handling any relevant errors. I was hoping to avoid the latter, but it seems there is little choice.

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

Reply via email to