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

On 16-03-30 12:55 AM, Pradeep Balachandran wrote:

Sure Pascal. I agree. That's just a work around.

A better approach is to tell load API not to cache the URIs in certain cases. Is there a way to do that?

ÂÂÂ No. There is no API to do this.


Pradeep

Inactive hide details for Pascal Rapicault ---03/29/2016
          09:11:12 PM---Note that it is highly recommended to use the
          API that NPascal Rapicault ---03/29/2016 09:11:12 PM---Note that it is highly recommended to use the API that Ned mentioned. Trying to directly tap into t

From: Pascal Rapicault <pascal@xxxxxxxxxxxxx>
To: P2 developer discussions <p2-dev@xxxxxxxxxxx>
Date: 03/29/2016 09:11 PM
Subject: Re: [p2-dev] API for "Available Software Sites" pref store
Sent by: p2-dev-bounces@xxxxxxxxxxx





Note that it is highly recommended to use the API that Ned mentioned. Trying to directly tap into the underlying preference store could lead to troubles, especially when installations are more fancy (e.g shared installs).

On 16-03-29 02:44 AM, Ned Twigg wrote:
      > 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



      _______________________________________________
      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



_______________________________________________
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

GIF image