Alta Elstad wrote: > Which command? The second worked for me. This one: > > # pkgrepo set -s /export/repoS11 repository/name=Solaris > # > > where the publisher is not specified, returns with no message, but then > > $ pkgrepo get -p solaris -s /export/repoS11 > > does not show the requested setting
Why would it? You've set the publisher-agnostic property and are retrieving the publisher-specific one, which you haven't (yet) set. > >>2. I cannot figure out how to pkgrepo set a list of values, such as > >>for origins. The man page says: section/property=(value1 value2 > >>valueN) > >>The error message says something else, which is confusing: > >><section/property>=(["<value>" ...]) > >>Ideally, they should be the same. > > > >And the usage message says something still different: > > > > section/property[+|-]=[value] ... or > > section/property[+|-]=([value]) ... > > > >>I finally figured it out, and it is different from either of these. > >>This worked for me: > >>pkgrepo set -p solaris -s /export/repoS11 repository/origins=http1 \ > >>repository/origins=http2 > >>This gives me > >>repository origins (http1 http2) > > > >That would be the first form from the usage message (where the dots > >indicate you can specify it more than once). You can also do > > No, what I did was > > # pkgrepo set -p solaris -s /export/repoS11 \ > repository/origins=http1 repository/origins=http2 > > which resulted in > > repository origins (http1 http2) Yes; I think that's what you said in your original message. That's the first form. The "section/property[+|-]=[value]" bit can be repeated multiple times, which is exactly what you did. > > repository/origins="(http1 http2)" > > I do find that this works also. > > So neither form that worked for me is documented. Both are. The one you used is as I explained, and the second form is as you copied from the man page (where it shows up in multiple places, as well as the usage and error messages, and while the presentation is not identical, it could be made so), but you need to be aware of shell metacharacters and word separation rules for it to work -- parentheses are special, and the list of values needs to be presented as a single word, which is why the invocation with quotes works. > >>3. The pkgrepo man page lists the detailed_url repo property, but I > >>am not seeing that in pkgrepo get, and pkgrepo set gives: unknown > >>property 'detailed_url' > > > >Worked for me. > > # pkgrepo set -p solaris -s /export/repoS11 \ > repository/detailed_url=http://hub.opensolaris.org > pkgrepo set: unknown property 'detailed_url' > Try 'pkgrepo --help or -?' for more information. Ah. It works without -p. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
