[email protected] wrote:
>> - Staged publishing mode would add packages to a special temporary 
>> catalog and updatelog file until the depot is instructed to "commit" 
>> whatever packages have been published so far.  Once the depot is 
>> instructed to "commit" these packages, it will add the contents of the 
>> temporary catalog and updatelog files to the current catalog and 
>> updatelog (repo_dir/catalog/).  It will then create a copy of the 
>> current catalog and updatelog and place them into 
>> repo_dir/catalogs/ISO8601DATE/.
> 
> The order of operations matters here.  The updatelog has a built-in log
> rotation mechanism.  If the commit generates enough updates, previous
> update log entries will automatically get purged.  I would copy the
> catalog/updatelog first, and then apply the changes.  That has the added
> benefit of leaving a good version of the catalog around, should the
> application of the updates fail unexpectedly.

You could already have a snapshot from the last time you published 
anything, but I suppose that would depend on whether you always used 
staged publishing or not.  That was why I chose the order of operations 
I did.  However, in retrospect, it seems reasonable to assume that not 
everyone publishing things would publish them using staged publishing 
even to the same repository.

-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to