That was it, after removing the other Solaris reference I can add both
publisher.
root@brunel:/joe# pkg publisher
PUBLISHER TYPE STATUS URI
JWH (preferred) origin online file:/repo/repo2/
solaris origin online file:/repo/repo2/
The message is somewhat misleading.
Rather then:
"The specified repository location is not a known source of publisher
configuration updates for 'solaris'. "
If it had said something like.
The publisher 'solaris' is allready specified.
It would have been simple to debug.
Joe
On 01/28/2011 04:04 PM, Shawn Walker wrote:
On 01/28/11 12:46 PM, Joe Higgins wrote:
I have created a repo with 2 publishers.
The following command confirms.
root@brunel:/joe# pkgrepo info -s file:/repo/repo2
PUBLISHER PACKAGES STATUS UPDATED
JWH 1 online 2011-01-28T21:38:29.399953Z
solaris 11 online 2011-01-27T21:11:00.708433Z
Adding JWH as a publisher works fine.
root@brunel:/joe# pkg set-publisher -p file:/repo/repo2 JWH
pkg set-publisher:
Updated publisher(s): JWH
However when I try to add solaris as a publisher it does not work
root@brunel:/joe# pkg set-publisher -p file:/repo/repo2 solaris
pkg set-publisher: failed to add or update one or more publishers
solaris:
The specified repository location is not a known source of publisher
configuration updates for 'solaris'.
This new repository location must be added as an origin to the publisher
to accept configuration updates from this repository.
-- Is this a known defect or user error ?
User error; feel free to suggest changing the wording of it though.
In short, it's attempting to tell you that you already have the
'solaris' publisher configured with a *different* repository, and
because of that, it wants you to manually add the new repository or
replace the existing one.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss