Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] API for "Available Software Sites" pref store

> But it has the side effect of adding those URIs to "Available Software Sites". 

Blech!  I only use P2 in the context of an RCP application with a fully custom UI, I hope my application is not caching every URI it's ever been passed...

Looking at the IRepositoryManager interface, looks like you could `getKnownRepositories(REPOSITORIES_ALL)`, and then call `removeRepository()` for each one.


Ned Twigg
Lead Software Architect, DiffPlug LLC
949-264-3433
340 S Lemon Ave #3433, Walnut, CA 91789

On Mon, Mar 28, 2016 at 10:15 PM, Pradeep Balachandran <pradeepb@xxxxxxxxxx> wrote:

Yes, we are already fetching remote repositories using p2 API. But it has the side effect of adding those URIs to "Available Software Sites".

Either there should be a way to tell p2 API not to cache these URIs or those URIs have to be removed from "Available Software Sites". We couldn't find a way to do the former and hence the main focus of this email is the latter.

Pradeep

Inactive hide details for Ned Twigg ---03/28/2016 11:47:23 PM---I don't know anything about changing prefs for "Available SoftwNed Twigg ---03/28/2016 11:47:23 PM---I don't know anything about changing prefs for "Available Software Sites". But, it is definitely pos

From: Ned Twigg <ned.twigg@xxxxxxxxxxxx>
To: P2 developer discussions <p2-dev@xxxxxxxxxxx>
Date: 03/28/2016 11:47 PM
Subject: Re: [p2-dev] API for "Available Software Sites" pref store
Sent by: p2-dev-bounces@xxxxxxxxxxx





I don't know anything about changing prefs for "Available Software Sites".

But, it is definitely possible to fetch remote repositories using just the raw P2 API.

This blog post does a pretty good job describing how.
http://eclipsesource.com/blogs/tutorials/eclipse-p2-tutorial-managing-metadata/



Ned Twigg
Lead Software Architect, DiffPlug LLC
949-264-3433
340 S Lemon Ave #3433, Walnut, CA 91789

On Mon, Mar 28, 2016 at 3:58 AM, Pradeep Balachandran <pradeepb@xxxxxxxxxx> wrote:_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/p2-dev


_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/p2-dev


Back to the top