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.
Yes, it's intentional that you can set custom properties for the
repository, but not the publisher. Yes, the man page should probably
mention that.
Erik in particular relies on this so he can set timestamps on
repositories to keep track of when they were last synchronised, etc.
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]) ...
For better or worse, pkgrepo uses the same syntax as svccfg does for
setting properties. The man page is the correct one.
A user has the option of specifying the same property multiple times, or
using the parentheses syntax svccfg has.
...
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.
I think there's confusion about repository and publisher level properties.
The man page tries to make it clear that 'get' displays properties for
the repository or for its publishers, but to show publisher properties,
you must specify -p.
The same is true of 'set'.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss