Can we make sure a new attribute, accept_license (Boolean) is exposed in the PackageInfo object returned by the client api.info().

I've updated the API bug tracking this, with your comments:
5943: License or license action needs way to indicate click required

Is this is a legal requirement that needs to be met for the 2009.06 release and if so should it be marked as a blocker? Padraig has a webrev for the GUI portion of this and can integrate whenever the attribute support has been added and exposed via the API.


Thanks,

JR

call.Stephen Hahn wrote:
  The license action needs to support an attribute that requires the
  user to make an explicit acknowledgment to proceed with an
  installation.  I'm proposing we add a new attribute, must_accept, to
  the license action, such that clients must fail if an acceptance
  indicator is not provided by the user.  This indicator should end up
  in the image's operational history.

  For the GUI, I would expect that the presence of the attribute would
  result in display of the license contents and a accept dialog.  I've
  noticed that NetBeans allows all licenses in a transaction to be
  accepted; one can also navigate license by license.

  For the CLI, I propose that the operation fail unless a
  --accept-license option is presented.  Failure should present the list
  of licenses requiring acceptance, and their associated package.  (The
  --license option to pkg info allows license text review.)

  The documentation changes are roughly:

  pkgsend.1:

----
!      license src_path license=<license_name> must_accept=<true|false> \
         [ property_list ]
            Deliver, into the image packaging metadata, the license file
!           at src_path, labelled by the given license value.  The
!           must_accept attribute influences installation client
!           behavior.
----

  pkg.5:

----
  License actions
    The 'license' action represents a license or other informational
    file associated with the package contents.  A package may deliver
    licenses, disclaimers, or other guidance to the package installer
    through the use of the license action.  The payload of the license
    action will be delivered into the image metadata directory
    associated with the package.

    The following attributes are recognized:

    license  The keyword identifying the license type, for use in filter
             and query operations.

+   must_accept  License requires manual acceptance.  If the value is
+            'true', installation clients must require some token that
+            indicates acceptance, or inquire about acceptance
+            interactively.  If the attribute is not present, or the
+            attribute value is 'false', acceptance is not necessary.

    The 'license' attribute is the key attribute for the license action.
----

   Comments welcome.

   - Stephen


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

Reply via email to