[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] rollbacking a provisiong action

See IDirector#revert(IProfile currentProfile, IProfile revertProfile, ProvisioningContext context, IProgressMonitor monitor).

Mtt c'est toi qui paye le repas de demain midi :p


On 2011-06-16, at 1:17 PM, Dahanne, Anthony wrote:

> Hello all !
> I was wondering if there was a public API to rollback a provisioning
> action in p2.
> I found this class : 
> org.eclipse.equinox.internal.p2.rollback.FormerState
> that could do the work (you give to it the current [n] and a former
> [n-1] profile; and it creates a change request to create a new
> profile[n+1] similar to the former profile [n-1]) 
> 
> public static IProfileChangeRequest
> generateProfileDeltaChangeRequest(IProfile current, IProfile target)
> 
> 
> but... it is an internal class... in an internal package, depending
> onothe rinternal packages (part of the p2 director bundle)
> 
> So I think this lead is not viable...
> 
> How do you guys proceed with rollbacking ?
> 
> Thanks for your answers !!
> 
> 
> Anthony Dahanne
> Software Developer
> Compuware Montreal
> 75 Rue Queen, Suite 6500
> Montreal, QC, Canada H3C 2N6
> +1-514-798-8949
> 
> 
> 
> 
> Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de l'information pouvant être confidentielle. Vous ne devez ni le copier ni l'utiliser ni le divulguer à qui que ce soit à moins que vous soyez le destinataire ou une personne désignée autorisée. Si vous le receviez par erreur, veuillez nous aviser immédiatement et le détruire.
> 
> The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
> 
> 
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev