On 15/07/10 02:34 PM, Dave Lin wrote:
On 2010年07月15日 12:25, James C. McPherson wrote:
On 15/07/10 02:19 PM, Dave Lin wrote:
I'm running on snv_142. I got the following error when I tried to create
a file:// repo. on it.
$ pfexec pkgsend -s file://dtrepo/144/x create-repository --set-property
publisher.prefix=desktop
pkgsend: create-repository: Invalid repository URL:
'file://dtrepo/144/x': 'dtrepo' contains host information, which is not
supported for filesystem operations.
I think you're missing a /
Does this work:
pfexec pkgsend -s file:///dtrepo/144/x create-repository \
--set-property publisher.prefix=desktop
assuming of course that /dtrepo is a valid directory on
your system
Ah, yes. it works now.
Btw, if I create a repo. as file://... at beginning, how can I switch to
http://... so that users can access it via http?
You're using a file:// repo so you can add data to it.
When you're done with that part of the process, you
create a new instance of the pkg/server service, and
point its inst_root:
svc:/application/pkg/server:blended> listprop
pkg application
pkg/port count 20000
pkg/readonly boolean true
pkg/inst_root astring /var/repo/blended
pkg/writable_root astring /var/repo/scratchdir
We create our blended onbld tools repo in /export/builds/blended,
then rsync it across to the location which the pkg/server uses to
serve it out.
James C. McPherson
--
Senior Software Engineer, Solaris
Oracle
http://www.jmcp.homeunix.com/blog
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss