Greetings,

The following webrev contains changes for the following items:

  17824 api install and update should allow specifying "latest" version
        of packages
  17827 MatchingDotSequence plays in the wrong pool
  17830 use of wildcards in versions forces glob matching of package
        name
  17842 api install, update, list, and info should allow "rooted"
        package names

webrev:
  http://cr.opensolaris.org/~swalker/pkg-latest/

Change Summary:
  * pkg(1) now allows '@latest' to be specified in package patterns;
    this allows a user (as an example) to explicitly request an update
    of all packages to the latest version (instead of the latest version
    that *can* be upgraded to).  Example: pkg update *@latest

    This also allows initial installs into empty images to be faster
    (e.g. pkg install entire@latest SUNWcs@latest SUNWcsd@latest
    babel_install@latest) since the matching will eliminate all versions
    but the latest for consideration by the solver.

  * If an FMRI pattern with a wildcard in the version was parsed by the
    MatchingDotSequence class before it was parsed by the DotSequence
    class, that caused wildcards to be allowed in normal DotSequences
    because of the shared pool for dot sequence objects indexed by
    version pattern.  This has been fixed by giving each DotSequence
    class its own pool.

  * pkg(1) was using glob matching for package names even when the
    version is the only thing that contained a wildcard.  This meant
    that patterns such as 'vim@*-0.157' didn't match packages named
    'editor/vim' as expected.  (The normal behaviour for 'pkg list
    vim' is to match packages named 'vim' and 'editor/vim' since 'vim'
    is the last component of the package name.)

  * All pkg(5) programs now allow the 'scheme' to be omitted in package
    names.  Specifically, package names starting with a '/' are treated
    as if they started with 'pkg:/' and those starting with '//' are
    treated as if they started with 'pkg://'.  Example:
    pkg:/foo == /foo and pkg://solaris/foo == //solaris/foo.

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

Reply via email to