I'm trying to track down why Rafael's machine isn't updating the way he
wants, and in the process have run into a pair of UI issues that seem a bit
weird to me.  One is the following:

    # pkg update -nv \*@latest //userland/system/data/timezone@latest \
        //userland/system/data/hardware-registry@latest \
        //userland/service/network/ftp@latest
    pkg update: The following different patterns specify the same package(s):
    //userland/system/data/hardware-registry@latest, *@latest: 
system/data/hardware-registry
    *@latest, //userland/system/data/timezone@latest: system/data/timezone
    *@latest, //userland/service/network/ftp@latest: service/network/ftp

He's running a build 174 pkg5-nightly, though I didn't get the actual pkg
version.  Didn't we solve this problem recently, or at least a variation of
it?


The second is this:

    pkg contents -rH -t set -o pkg.shortfmri,value \
        -a name=org.opensolaris.consolidation \
        system/data/[email protected].{165..173}

(where that bit with the curly braces means pretty much what you'd expect --
put each number in that sequence into that word, each time as a separate
word on the commandline).  The result is somewhat unexpected:

    pkg://solaris/system/data/[email protected]    
userland

    pkg: contents: no packages matching the following patterns you specified 
were
    found in the catalog.  Try relaxing the patterns, refreshing, and/or
    examining the catalogs:

            system/data/[email protected]
            system/data/[email protected]
            system/data/[email protected]
            system/data/[email protected]
            system/data/[email protected]
            system/data/[email protected]
            system/data/[email protected]
            system/data/[email protected]

If I do a for loop over each version instead, it works just fine:

    pkg://solaris/system/data/[email protected]        osnet
    pkg://solaris/system/data/[email protected]        osnet
    pkg://solaris/system/data/[email protected]        osnet
    pkg://solaris/system/data/[email protected]        osnet
    pkg://solaris/system/data/[email protected]        userland
    pkg://solaris/system/data/[email protected]        userland
    pkg://solaris/system/data/[email protected]        userland
    pkg://solaris/system/data/[email protected]        userland
    pkg://solaris/system/data/[email protected] 
userland

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

Reply via email to