On 03/12/10 02:52 PM, Joseph J VLcek wrote:
> Please review the fixes for:
>
> Bug 15163 - DC needs to be enhanced to publish the AI image as an IPS
> repository
>
> The webrev is here:
> http://cr.opensolaris.org/~joev/bug15163/
>
> Bug 15163 will be used to track the work required to update the DC to
> meet the needs of project "Automated Installation Service and Image
> Management".
>
> I have tested these changes on x86 and will test on SPARC before pushing.

ai_publish_pkg:
   lines 32, 198, 342, 348: s/IPS/pkg(5)/
      Yes, that's a nit, but there's no IPS man page, there is a pkg(5) 
man page though :)

   line 139: I think you're missing -A to abandon the transaction?  And 
close shouldn't be called here unless PKG_TRANS_ID is set in the 
environment.

   line 390: s/depo/depot/

> I have developed the new finalizer script, ai_publish_pkg, in ksh. The
> IPS command used by this script, pkgsend(1), does not have a direct
> Python interface. However the IPS Transaction class could be used to
> replicate what the pkgsend(1) command does allowing this script to be
> implemented in Python. In discussing this with Dave Miner he wasn't all
> that concerned that this script stay ksh.

For now, it's best to stick with using pkgsend.  While using the 
publication transaction module(s) can provide you with better 
performance, they are not yet an interface intended for external 
consumers (unlike pkg.client.api).

-- 
Shawn Walker

Reply via email to