On 09/20/11 16:30, Danek Duvall wrote:
[ Copying pkg-discuss. ]

Alta Elstad wrote:

1. pkgrepo set -s /export/repoS11 repository/name=Solaris fails
silently. Shouldn't it say "pkgrepo set: no matching properties
found"?
pkgrepo set -p solaris -s /export/repoS11 repository/name=Solaris works

On an empty repository, this worked for me.  At least, it returned with an
exit code of 0 and it put "name = Solaris" in the "repository" section of
the config file.  I don't know if that's what it's supposed to do.  It
certainly had a different effect than when I used -p.

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

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)

    repository/origins="(http1 http2)"

I do find that this works also.

So neither form that worked for me is documented.

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.
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to