[ 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.
> 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
repository/origins="(http1 http2)"
> 3. The pkgrepo man page lists the detailed_url repo property, but I
> am not seeing that in pkgrepo get, and pkgrepo set gives: unknownn
> property 'detailed_url'
Worked for me.
> 4. I see that I goofed up the formatting of repo properties. While
> section/property is correctly italicized, all the specific ones
> should be fixed width, not italicized. I have fixed this in my SGML
> source.
Thanks. How does that come out in nroff -- as bold?
Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss