Steven Lau wrote:
> First time to setup up an local IPS repo and trying out to publish an 
> existing Solaris package by following the document below, but failed.
> 
> http://dlc.sun.com/osol/docs/content/2008.11/IMGPACKAGESYS/ipsdev.html#pubpkg2
> 
> 
> I can access my repo http://b28b:8888 from my browser.  The following is 
> what I tried.
> 
> Any detail log I can check to see more info why it failed (beside its 
> error return) ..... BTW, my OpenSolaris version  is osol-0906-106a-x86 
> and it works fine to publish an IPS package.
> 
> Thanks,
> 
> -Steven
> 
> ---
> 
> 
> ste...@b28b:/var/sadm/pkg# ls -ld SUNWzip
> drwxr-xr-x   2 root     root           4 Feb  3 15:45 SUNWzip
> 
> ste...@b28b:/var/sadm/pkg# pkginfo -l SUNWzip
>    PKGINST:  SUNWzip
>       NAME:  The Info-Zip (zip) compression utility
>   CATEGORY:  system
>       ARCH:  i386
>    VERSION:  11.11.0,REV=2009.01.07.14.03
>     VENDOR:  Sun Microsystems, Inc.
>       DESC:  The Info-Zip (zip) compression utility
>    HOTLINE:  Please contact your local service provider
>     STATUS:  completely installed
> 
> 
> ste...@b28b:/var/sadm/pkg#
> ste...@b28b:/var/sadm/pkg# eval `pkgsend -s http://b28b:8888 open SUNWzip`
> pkgsend: open failed (status 400)
> 


Look in your depot log file

/var/svc/log/application-pkg-server:default.log

for the assert.. you'll see that you need a version number on that 
fmri... something pkgsend could do a better job of checking... from
the man page:

EXAMPLES
      Example 1:  Create a trivial package.

      $ eval `pkgsend open [email protected]`
      $ pkgsend add file example mode=0555 owner=root group=bin \
          path=/usr/bin/example
      $ pkgsend close




-- 
Bart Smaalders                  Solaris Kernel Performance
[email protected]         http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to