Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Bundle not unpacked after update

I don't have a small example of this behaviour, but it seems to be an issue with access privileges. 

I've found out that if I install RCP product in a location different than C:\Program Files ... update works just fine. 

Does p2 report any issues with access privilleges when unzipping bundles? 

I've also noticed that this problem occurs only for some of the bundles marked for unzipping. Others are unpacked properly in the same loaction during update.

I can try to debug this scenario, if you can point me to the places in the code where unpacking happens.

I'm using p2 bundles form Indigo update site.

Thanks,
Natalia

2012/1/4 Bourgeois, Christian <Christian.Bourgeois@xxxxxxxxxxxxx>

We came across the same issue some time ago and we found a way to make this uses case working.

 

In the bundle you want to be unzipped at installation time, just add the following line to the META-INF/MANIFEST.MF file:

 

Eclipse-BundleShape: dir

 

It worked like a charm for us with 3.6 and 3.7.

 

Regards,

Christian

 

 


 

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.
 

De : p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] De la part de Natalia Bartol
Envoyé : January 4, 2012 2:03 PM
À : P2 developer discussions
Objet : [p2-dev] Bundle not unpacked after update

 

Hello,

 

I have a feature that contains plugin which is marked to be unpacked after installation. However after updating this feature to a newer version this plugin remains as a jar. Both generated profile and update site metadata look correct, plugin's unit definition contains

 

<instruction key='zipped'>

            true

 </instruction>

 

anyway, the new plugin is downloaded but not extracted. 

 

Just for test I removed instruction key='zipped' from update site metadata and it fixed the issue...

I'm confused. 

 

Any hints will be appreciated!

 

Regards,

Natalia

 

 

 



_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev



Back to the top